This commit is contained in:
liumengyi
2024-03-13 15:56:26 +08:00
parent 2dbf7e3fde
commit d35edfab0e
2 changed files with 2 additions and 10 deletions
+1 -1
View File
@@ -39,7 +39,7 @@ $items[] = array('name' => 'id', 'label' => $lang->idAB, 'control' => 'index', '
if($bugs) $items[] = array('name' => 'uploadImage', 'label' => '', 'control' => 'hidden', 'hidden' => true);
/* Field of branch. */
if($product->type != 'normal') $items[] = array('name' => 'branch', 'label' => $lang->product->branchName[$product->type], 'control' => 'picker', 'items' => $branches, 'value' => $branch, 'width' => '200px', 'ditto' => true);
if($product->type != 'normal') $items[] = array('name' => 'branch', 'label' => $lang->product->branchName[$product->type], 'control' => 'picker', 'items' => $branches, 'value' => $branch, 'width' => '200px', 'ditto' => true, 'hidden' => strpos(",{$showFields},", ',branch,') === false);
/* Field of module. */
$items[] = array('name' => 'module', 'label' => $lang->bug->module, 'control' => 'picker', 'items' => $moduleOptionMenu, 'value' => $moduleID, 'width' => '200px', 'required' => isset($requiredFields['module']), 'ditto' => true);
+1 -9
View File
@@ -1517,15 +1517,7 @@ class bugZen extends bug
/* Set display fields. */
$showFields = $this->config->bug->custom->batchCreateFields;
if($product->type != 'normal')
{
$showFields = sprintf($showFields, 'branch');
$showFields = trim($showFields, ',');
}
else
{
$showFields = trim(sprintf($showFields, ''), ',');
}
$showFields = trim(sprintf($showFields, ''), ',');
/* Get titles from uploaded images. */
if(!empty($bugImagesFile))