From cd829d68239e07e692fe077085fd550601fa0890 Mon Sep 17 00:00:00 2001 From: wangyuting Date: Wed, 24 Jul 2024 17:24:49 +0800 Subject: [PATCH] * [bug#52991,done,1h,0h] Repeatedly loading fields of workflow. --- lib/zin/wg/formpanel/v1.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/zin/wg/formpanel/v1.php b/lib/zin/wg/formpanel/v1.php index 572faa0aaa..5eeb766d93 100644 --- a/lib/zin/wg/formpanel/v1.php +++ b/lib/zin/wg/formpanel/v1.php @@ -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 ); }