summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2016-08-14 14:34:02 -0400
committerFrederic Guillot <fred@kanboard.net>2016-08-14 14:34:02 -0400
commit50b354851f6549bca084d79291749020d5fb4588 (patch)
treefa0053cbd0a87e8e625d975cba8ae984963e496d
parentcab8ff8989fac739b6ec24046f8368792b1fbc04 (diff)
parent861441ed31a080a41dd2bfb418c03fc318d3f16e (diff)
Merge pull-request #2539
-rw-r--r--app/Helper/TaskHelper.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/Helper/TaskHelper.php b/app/Helper/TaskHelper.php
index 32f2a9ae..678b4bed 100644
--- a/app/Helper/TaskHelper.php
+++ b/app/Helper/TaskHelper.php
@@ -151,7 +151,7 @@ class TaskHelper extends Base
{
$html = '';
- if ($project['priority_end'] > $project['priority_start']) {
+ if ($project['priority_end'] != $project['priority_start']) {
$range = range($project['priority_start'], $project['priority_end']);
$options = array_combine($range, $range);
$values += array('priority' => $project['priority_default']);
@@ -221,7 +221,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>';