summaryrefslogtreecommitdiff
path: root/app/Helper
diff options
context:
space:
mode:
authorRys Sommefeldt <rys@pixeltards.com>2016-08-01 15:49:43 +0100
committerGitHub <noreply@github.com>2016-08-01 15:49:43 +0100
commit861441ed31a080a41dd2bfb418c03fc318d3f16e (patch)
tree8a2831a8d271cc5924e8c5ac84448230cc824133 /app/Helper
parentb30a4fca240cee1f689715b0e1636d23f92bc2fd (diff)
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.
Diffstat (limited to 'app/Helper')
-rw-r--r--app/Helper/TaskHelper.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/Helper/TaskHelper.php b/app/Helper/TaskHelper.php
index 84730010..7722f4cc 100644
--- a/app/Helper/TaskHelper.php
+++ b/app/Helper/TaskHelper.php
@@ -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>';