summaryrefslogtreecommitdiff
path: root/app/Model
diff options
context:
space:
mode:
Diffstat (limited to 'app/Model')
-rw-r--r--app/Model/ActionParameterModel.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/app/Model/ActionParameterModel.php b/app/Model/ActionParameterModel.php
index cdac396e..66c7adb4 100644
--- a/app/Model/ActionParameterModel.php
+++ b/app/Model/ActionParameterModel.php
@@ -147,6 +147,9 @@ class ActionParameterModel extends Base
case 'project_id':
return $value != $project_id ? $value : false;
case 'category_id':
+ if ($value == 0) {
+ return 0;
+ }
return $this->categoryModel->getIdByName($project_id, $this->categoryModel->getNameById($value)) ?: false;
case 'src_column_id':
case 'dest_column_id':
@@ -156,6 +159,9 @@ class ActionParameterModel extends Base
return empty($column) ? false : $this->columnModel->getColumnIdByTitle($project_id, $column['title']) ?: false;
case 'user_id':
case 'owner_id':
+ if ($value == 0) {
+ return 0;
+ }
return $this->projectPermissionModel->isAssignable($project_id, $value) ? $value : false;
case 'swimlane_id':
$column = $this->swimlaneModel->getById($value);