summaryrefslogtreecommitdiff
path: root/app/Helper
diff options
context:
space:
mode:
authorRys Sommefeldt <rys@pixeltards.com>2016-08-01 12:00:32 +0100
committerGitHub <noreply@github.com>2016-08-01 12:00:32 +0100
commitb30a4fca240cee1f689715b0e1636d23f92bc2fd (patch)
tree87e6225fb7b9252c7e248caa2c1305108f4ec9ae /app/Helper
parent86c950743f2d923a37de3f3a91344dae62a1015e (diff)
Allow priority changes when start and end differ
It's common to want an 'inverted' priority range, for example where P0 is the highest. The task helper logic would hide priority editing when priority_end was larger than priority_start. This logic change allows it by checking that priority_start and priority_end are different.
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 481a5efb..84730010 100644
--- a/app/Helper/TaskHelper.php
+++ b/app/Helper/TaskHelper.php
@@ -148,7 +148,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']);