* [bug#54620,done,0.5h] fix bug.

This commit is contained in:
sunguangming
2024-08-29 08:49:46 +08:00
committed by 王怡栋
parent 2b947c79b0
commit ada2dd8b96
+2 -2
View File
@@ -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'])
);
}