* Adjust codes.

This commit is contained in:
daitingting
2018-05-30 17:17:21 +08:00
parent e9f1f3b184
commit 2aeb32ea39
+1 -2
View File
@@ -2531,9 +2531,8 @@ class bugModel extends model
break;
case 'assignedTo':
$btnTextClass = '';
$assignedToText = zget($users, $bug->assignedTo);
$assignedToText = !empty($bug->assignedTo) ? zget($users, $bug->assignedTo) : $this->lang->bug->noAssigned;
$btnTextClass = 'text-primary';
if(empty($bug->assignedTo)) $assignedToText = $this->lang->bug->noAssigned;
if($bug->assignedTo == $account) $btnTextClass = 'text-red';
$btnClass = $assignedToText == 'closed' ? ' disabled' : '';