Display priority changes in board view for inverted priority ranges
Similar to allowing update of priorities when `priority_end` is greater than `priority_start`, to support inverted priority ranges, allow that change to propagate into `formatPriority` and display in the board view.
This commit is contained in:
@@ -228,7 +228,7 @@ class TaskHelper extends Base
|
|||||||
{
|
{
|
||||||
$html = '';
|
$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 .= '<span class="task-board-priority" title="'.t('Task priority').'">';
|
||||||
$html .= $task['priority'] >= 0 ? 'P'.$task['priority'] : '-P'.abs($task['priority']);
|
$html .= $task['priority'] >= 0 ? 'P'.$task['priority'] : '-P'.abs($task['priority']);
|
||||||
$html .= '</span>';
|
$html .= '</span>';
|
||||||
|
|||||||
Reference in New Issue
Block a user