Fix indentation in PR #2587

This commit is contained in:
Frederic Guillot 2016-08-23 20:33:02 -04:00
parent fb24b527f2
commit 71221c1bbd
No known key found for this signature in database
GPG Key ID: 92D77191BA7FBC99
3 changed files with 4 additions and 4 deletions

View File

@ -53,7 +53,7 @@ class EventManager
TaskModel::EVENT_CREATE_UPDATE => t('Task creation or modification'),
TaskModel::EVENT_ASSIGNEE_CHANGE => t('Task assignee change'),
TaskModel::EVENT_DAILY_CRONJOB => t('Daily background job for tasks'),
TaskModel::EVENT_MOVE_SWIMLANE => t('Move a task to another swimlane'),
TaskModel::EVENT_MOVE_SWIMLANE => t('Move a task to another swimlane'),
);
$events = array_merge($events, $this->events);

View File

@ -160,7 +160,7 @@ class ActionParameterModel extends Base
case 'swimlane_id':
$column = $this->swimlaneModel->getById($value);
return empty($column) ? false : $this->swimlaneModel->getIdByName($project_id, $column['name']) ?: false;
default:
default:
return $value;
}
}

View File

@ -44,10 +44,10 @@
<?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 else: ?>
<?php else: ?>
<?= $this->form->label($param_desc, $param_name) ?>
<?= $this->form->text('params['.$param_name.']', $values) ?>
<?php endif ?>
<?php endif ?>
<?php endforeach ?>
<div class="form-actions">