summaryrefslogtreecommitdiff
path: root/app/Model/ActionParameterModel.php
diff options
context:
space:
mode:
authordalmond <david.almond@f-grp.com>2016-08-17 12:20:12 +0100
committerDavid Almond <david.almond@f-grp.com>2016-08-17 12:51:59 +0100
commit5c685a2a78aea236153fb051ae9615ff0fe6e4a8 (patch)
treeb8ee97e5984ff13ec11d582bc5a53e9e01836ff3 /app/Model/ActionParameterModel.php
parent98efcf21e355ed6ac3827058b99df86ca67c75bb (diff)
Automatic Actions now support Swimlanes
Diffstat (limited to 'app/Model/ActionParameterModel.php')
-rw-r--r--app/Model/ActionParameterModel.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/app/Model/ActionParameterModel.php b/app/Model/ActionParameterModel.php
index 9895da0f..d4d45178 100644
--- a/app/Model/ActionParameterModel.php
+++ b/app/Model/ActionParameterModel.php
@@ -157,7 +157,10 @@ class ActionParameterModel extends Base
case 'user_id':
case 'owner_id':
return $this->projectPermissionModel->isAssignable($project_id, $value) ? $value : false;
- default:
+ case 'swimlane_id':
+ $column = $this->swimlaneModel->getById($value);
+ return empty($column) ? false : $this->swimlaneModel->getIdByName($project_id, $column['name']) ?: false;
+ default:
return $value;
}
}