Explorar o código

修复删除未完成任务项目未完成数量不变的情况

kuaifan %!s(int64=4) %!d(string=hai) anos
pai
achega
934f81fcdc
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      app/Http/Controllers/Api/ProjectController.php

+ 1 - 1
app/Http/Controllers/Api/ProjectController.php

@@ -2238,7 +2238,7 @@ class ProjectController extends Controller
             DB::table('project_log')->insert($logArray);
         }
         //
-        if (in_array($act, ['complete', 'unfinished'])) {
+        if (in_array($act, ['complete', 'unfinished', 'delete'])) {
             Project::updateNum($task['projectid']);
         }
         //