]> gitweb.erp-flowers.ru Git - erp24_rep/yii-erp24/.git/commitdiff
Проблемы с таблицами
authorvladfo <fvv2011@gmail.com>
Thu, 19 Sep 2024 23:50:39 +0000 (02:50 +0300)
committervladfo <fvv2011@gmail.com>
Thu, 19 Sep 2024 23:50:39 +0000 (02:50 +0300)
erp24/actions/task/IndexAction.php

index b20aea63c9f66341083fccb67796fc74ac3e5b8f..409918c9d71613dc245e0d24f19c002394a0a0f3 100755 (executable)
@@ -295,7 +295,7 @@ class IndexAction extends Action
             $tasks = $tasks->andWhere(['status' => Task::STATUS_CLOSED]);
         }
         }
-        $tasks = $tasks->andWhere(['or', ['parent_id' => 0], ['parent_id' => null]])->all();
+        $tasks = $tasks->andWhere(['or', ['task.parent_id' => 0], ['task.parent_id' => null]])->all();
         //var_dump($tasks);
         if (Yii::$app->request->isPjax) {
             $task = Task::findOne($task_id);