swagger tasks

This commit is contained in:
apuc committed 2023-04-26 01:22:02 +03:00
1 parent 226f2daa34
commit 50b9722e82
6 files changed
+242 -8

No files matched your search

+1 -1
View File
@@ -123,6 +123,6 @@ class ProjectColumn extends \yii\db\ActiveRecord
*/
public function getTasks()
{
return $this->hasMany(ProjectTask::class, ['column_id' => 'id'])->with('taskUsers');
return $this->hasMany(ProjectTask::class, ['column_id' => 'id'])->with('taskUsers')->where(['status' => ProjectTask::STATUS_ACTIVE]);
}
}