Merge pull-request #2539
This commit is contained in:
@@ -151,7 +151,7 @@ class TaskHelper extends Base
|
|||||||
{
|
{
|
||||||
$html = '';
|
$html = '';
|
||||||
|
|
||||||
if ($project['priority_end'] > $project['priority_start']) {
|
if ($project['priority_end'] != $project['priority_start']) {
|
||||||
$range = range($project['priority_start'], $project['priority_end']);
|
$range = range($project['priority_start'], $project['priority_end']);
|
||||||
$options = array_combine($range, $range);
|
$options = array_combine($range, $range);
|
||||||
$values += array('priority' => $project['priority_default']);
|
$values += array('priority' => $project['priority_default']);
|
||||||
@@ -221,7 +221,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