From 41018da251bf718474d200c0ac8faa06e65e4339 Mon Sep 17 00:00:00 2001 From: sunhao Date: Wed, 17 Jan 2024 12:22:02 +0800 Subject: [PATCH] * zin: fix batchForm not work. --- lib/zin/wg/formbatch/v1.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/lib/zin/wg/formbatch/v1.php b/lib/zin/wg/formbatch/v1.php index 84a4f60038..1eb803084f 100644 --- a/lib/zin/wg/formbatch/v1.php +++ b/lib/zin/wg/formbatch/v1.php @@ -75,6 +75,14 @@ class formBatch extends formBase return new formBatchItem(inherit($item)); } + public function children(): array + { + $children = array(); + $children[] = $this->buildContent(); + $children[] = $this->buildActions(); + return $children; + } + /** * Build batch form content. * @@ -83,7 +91,7 @@ class formBatch extends formBase */ protected function buildContent(): array|wg { - $items = $this->prop('items', array()); + $items = array_merge($this->block('children'), $this->prop('items', array())); $templateItems = array(); $headItems = array(); $otherItems = array();