* Refactor my::bug.

This commit is contained in:
liumengyi
2023-11-22 14:16:50 +08:00
parent a2b0eeee64
commit fa5a6a71bd
2 changed files with 5 additions and 6 deletions
+1
View File
@@ -31,6 +31,7 @@ $canBatchClose = common::hasPriv('bug', 'batchClose') && strtolower($type)
$canBatchAssignTo = common::hasPriv('bug', 'batchAssignTo');
$canBatchAction = $canBatchEdit || $canBatchConfirm || $canBatchClose || $canBatchAssignTo;
if($type == 'bySearch') $type = $this->session->myBugType;
if($type == 'openedBy') unset($config->bug->dtable->fieldList['openedBy']);
if($type == 'assignedTo') unset($config->bug->dtable->fieldList['assignedTo']);
if($type == 'resolvedBy') unset($config->bug->dtable->fieldList['resolvedBy']);