* [bug#52991,done,1h,0h] Repeatedly loading fields of workflow.

This commit is contained in:
wangyuting
2024-07-24 17:28:35 +08:00
committed by 胡方舟
parent d0c259a614
commit cd829d6823
+2 -1
View File
@@ -233,6 +233,7 @@ class formPanel extends panel
*/
protected function buildForm(): node
{
$fields = $this->prop('fields', array());
$customFields = $this->prop('customFields', array());
$listFields = zget($customFields, 'list', array());
$showFields = zget($customFields, 'show', array());
@@ -269,7 +270,7 @@ class formPanel extends panel
set::className($this->prop('formClass')),
set($this->props->pick($formProps)),
$this->children(),
$this->prop('showExtra') ? $this->buildExtraMain() : null,
$this->prop('showExtra') && !$fields ? $this->buildExtraMain() : null,
$hiddenFields ? jsVar('hiddenFields', $hiddenFields) : null
);
}