Merge pull-request #2539
This commit is contained in:
commit
50b354851f
|
|
@ -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>';
|
||||
|
|
|
|||
Loading…
Reference in New Issue