This commit is contained in:
tanghucheng
2023-10-11 21:47:30 -04:00
parent 17ff0e0ee7
commit cd5d68b35d
+6
View File
@@ -649,8 +649,14 @@ class bug extends control
$executions = isset($executions[$executionID]) ? $executions : $executions + array($executionID => $execution->name);
/* Set custom. */
if($execution and !$execution->multiple)
{
$this->config->bug->list->customCreateFields = str_replace('execution,', '', $this->config->bug->list->customCreateFields);
$this->config->bug->custom->createFields = str_replace('execution,', '', $this->config->bug->custom->createFields);
}
foreach(explode(',', $this->config->bug->list->customCreateFields) as $field) $customFields[$field] = $this->lang->bug->$field;
$this->view->title = isset($this->products[$productID]) ? $this->products[$productID] . $this->lang->colon . $this->lang->bug->create : $this->lang->bug->create;
$this->view->customFields = $customFields;
$this->view->showFields = $this->config->bug->custom->createFields;