Project can't chain tasks to itself

This commit is contained in:
simon987
2019-02-25 19:12:08 -05:00
parent df7f91a475
commit b2fcf6fce4
3 changed files with 18 additions and 14 deletions

View File

@@ -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",