diff options
author | dalmond <david.almond@f-grp.com> | 2016-08-17 12:20:12 +0100 |
---|---|---|
committer | David Almond <david.almond@f-grp.com> | 2016-08-17 12:51:59 +0100 |
commit | 5c685a2a78aea236153fb051ae9615ff0fe6e4a8 (patch) | |
tree | b8ee97e5984ff13ec11d582bc5a53e9e01836ff3 /app/Model/ActionParameterModel.php | |
parent | 98efcf21e355ed6ac3827058b99df86ca67c75bb (diff) |
Automatic Actions now support Swimlanes
Diffstat (limited to 'app/Model/ActionParameterModel.php')
-rw-r--r-- | app/Model/ActionParameterModel.php | 5 |
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; } } |