* [bug#54620,done,0.5h] fix bug.
This commit is contained in:
@@ -87,14 +87,14 @@ function buildBody(array $cols): form
|
||||
foreach($cols as $col)
|
||||
{
|
||||
if($_SESSION['currentProductType'] == 'normal' && $col['name'] == 'branch') continue;
|
||||
if($col['type']) $col = array_merge(getDefaultConfig($col['type']), $col);
|
||||
if(isset($col['type'])) $col = array_merge(getDefaultConfig($col['type']), $col);
|
||||
if(!isset($col['fixed']) || empty($col['fixed'])) $col['fixed'] = 'no';
|
||||
$itemsList[$col['fixed']][] = array(
|
||||
'required' => isset($col['required']) && $col['required'] === true,
|
||||
'title' => $col['title'],
|
||||
'width' => $col['width'],
|
||||
'name' => $col['name'],
|
||||
'show' => $col['show']
|
||||
'show' => !empty($col['show'])
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user