Skip to content

Commit accecb5

Browse files
ishibashi takkenjxlwqq
andauthored
Update src/Grid/Filter/Presenter/Text.php
Co-authored-by: jxlwqq <[email protected]>
1 parent 51fd550 commit accecb5

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/Grid/Filter/Presenter/Text.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -162,11 +162,7 @@ public function inputmask($options = [], $icon = 'pencil'): self
162162
{
163163
$options = json_encode($options);
164164

165-
if (is_array($this->filter->getId())) {
166-
$ids = $this->filter->getId();
167-
} else {
168-
$ids[] = $this->filter->getId();
169-
}
165+
$ids = (array)$this->filter->getId();
170166

171167
foreach ($ids as $id) {
172168
Admin::script("$('#{$this->filter->getFilterBoxId()} input.{$id}').inputmask($options);");

0 commit comments

Comments
 (0)