* Fix submit workflow extra form bug.

This commit is contained in:
wangyuting
2024-03-22 14:38:07 +08:00
parent 7264f09037
commit 959b393b64
3 changed files with 11 additions and 3 deletions
+8 -1
View File
@@ -635,7 +635,14 @@ class control extends baseControl
foreach($fieldList as $key => $field)
{
if($field->buildin || !$field->show || !isset($layouts[$field->field])) continue;
$config[$field->field] = array('required' => false, 'type' => $field->type);
if($field->control == 'multi-select' || $field->control == 'checkbox')
{
$config[$field->field] = array('required' => false, 'type' => 'array', 'default' => array(''), 'filter' => 'join');
}
else
{
$config[$field->field] = array('required' => false, 'type' => 'string');
}
}
}
return $config;