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.
This commit is contained in:
Rys Sommefeldt 2016-08-01 12:00:32 +01:00 committed by GitHub
parent 86c950743f
commit b30a4fca24
1 changed files with 1 additions and 1 deletions

View File

@ -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']);