* Fix bug #46732.
This commit is contained in:
@@ -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
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user