mirror of
https://github.com/simon987/task_tracker.git
synced 2025-12-14 07:19:02 +00:00
Project can't chain tasks to itself
This commit is contained in:
@@ -157,7 +157,7 @@ func (api *WebAPI) UpdateProject(r *Request) {
|
||||
return
|
||||
}
|
||||
|
||||
if !updateReq.isValid() {
|
||||
if !updateReq.isValid(id) {
|
||||
r.Json(JsonResponse{
|
||||
Ok: false,
|
||||
Message: "Invalid request",
|
||||
|
||||
Reference in New Issue
Block a user