Display priority changes in board view for inverted priority ranges

Similar to allowing update of priorities when `priority_end` is greater than `priority_start`, to support inverted priority ranges, allow that change to propagate into `formatPriority` and display in the board view.
This commit is contained in:
Rys Sommefeldt 2016-08-01 15:49:43 +01:00 committed by GitHub
parent b30a4fca24
commit 861441ed31
1 changed files with 1 additions and 1 deletions

View File

@ -228,7 +228,7 @@ class TaskHelper extends Base
{
$html = '';
if ($project['priority_end'] > $project['priority_start']) {
if ($project['priority_end'] != $project['priority_start']) {
$html .= '<span class="task-board-priority" title="'.t('Task priority').'">';
$html .= $task['priority'] >= 0 ? 'P'.$task['priority'] : '-P'.abs($task['priority']);
$html .= '</span>';