Skip to content

Commit

Permalink
Update FormHelper.php
Browse files Browse the repository at this point in the history
  • Loading branch information
funadmin authored Sep 13, 2022
1 parent 709cd7c commit d3ce172
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/helper/FormHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -537,6 +537,7 @@ public function multiselect($name = '', $select=[], $options=[], $attr=[], $val
}
}
}
$id = $options['id']??$name;
$label = $options['label'] ?? $name;
$url = $options['url'] ?? '';
$multiple = '';
Expand All @@ -551,7 +552,7 @@ public function multiselect($name = '', $select=[], $options=[], $attr=[], $val
$attr = is_array($attr) ? implode(',', $attr) : $attr;
$str = '<div class="layui-form-item">' .$this->label($label,$options) . '
<div class="layui-input-block">
<select data-attr="' . $attr . '" data-url="' . $url . '" ' . $this->addextend($options) . ' ' . $this->addstyle($options) . ' class="layui-select-url layui-select' . $this->addClass($options) . '" name="' . $name . '" ' . $multiple . ' ' . $this->filter($options) . ' ' . $this->verify($options) . ' ' . $this->search($options) . ' ' . $this->readonlyOrdisabled($options) . ' >
<select data-id="'.$id.'" data-attr="' . $attr . '" data-url="' . $url . '" ' . $this->addextend($options) . ' ' . $this->addstyle($options) . ' class="layui-select-url layui-select' . $this->addClass($options) . '" name="' . $name . '" ' . $multiple . ' ' . $this->filter($options) . ' ' . $this->verify($options) . ' ' . $this->search($options) . ' ' . $this->readonlyOrdisabled($options) . ' >
<option value="">' . lang($default) . '</option>
' . $op . '
</select>
Expand Down

0 comments on commit d3ce172

Please sign in to comment.