From d3ce172e52c257724cff3fde082090cc13d15f68 Mon Sep 17 00:00:00 2001 From: funadmin <994927909@qq.com> Date: Tue, 13 Sep 2022 11:55:22 +0800 Subject: [PATCH] Update FormHelper.php --- src/helper/FormHelper.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/helper/FormHelper.php b/src/helper/FormHelper.php index f3321b7..3ff02c3 100644 --- a/src/helper/FormHelper.php +++ b/src/helper/FormHelper.php @@ -537,6 +537,7 @@ public function multiselect($name = '', $select=[], $options=[], $attr=[], $val } } } + $id = $options['id']??$name; $label = $options['label'] ?? $name; $url = $options['url'] ?? ''; $multiple = ''; @@ -551,7 +552,7 @@ public function multiselect($name = '', $select=[], $options=[], $attr=[], $val $attr = is_array($attr) ? implode(',', $attr) : $attr; $str = '