Merge pull-request #2539

This commit is contained in:
Frederic Guillot 2016-08-14 14:34:02 -04:00
commit 50b354851f
No known key found for this signature in database
GPG Key ID: 92D77191BA7FBC99
1 changed files with 2 additions and 2 deletions

View File

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