summaryrefslogtreecommitdiff
path: root/app/Template/action_creation/params.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2017-10-17 14:04:21 -0700
committerFrederic Guillot <fred@kanboard.net>2017-10-17 14:04:21 -0700
commit5ad1a42a34e4e463a94971a5edec95f9b5716b14 (patch)
tree19126529aa10c692997c3e644545ab200dc25f7d /app/Template/action_creation/params.php
parent41c2ab0c2451ea00d1236bc31f13ee7c2da97c3a (diff)
Add support for array in automatic actions
Diffstat (limited to 'app/Template/action_creation/params.php')
-rw-r--r--app/Template/action_creation/params.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/app/Template/action_creation/params.php b/app/Template/action_creation/params.php
index 6c30d6c6..9083b949 100644
--- a/app/Template/action_creation/params.php
+++ b/app/Template/action_creation/params.php
@@ -42,6 +42,9 @@
<?php elseif ($this->text->contains($param_name, 'swimlane_id')): ?>
<?= $this->form->label($param_desc, $param_name) ?>
<?= $this->form->select('params['.$param_name.']', $swimlane_list, $values) ?>
+ <?php elseif (is_array($param_desc)): ?>
+ <?= $this->form->label(ucfirst($param_name), $param_name) ?>
+ <?= $this->form->select('params['.$param_name.']', $param_desc, $values) ?>
<?php else: ?>
<?= $this->form->label($param_desc, $param_name) ?>
<?= $this->form->text('params['.$param_name.']', $values) ?>