Skip to content

Commit 5bfe043

Browse files
committed
fix CrudFilter initialization
1 parent 77f783d commit 5bfe043

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/app/Library/CrudPanel/CrudFilter.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,8 @@ public function getNamespacedViewWithFallbacks()
169169
*/
170170
public static function name($name)
171171
{
172-
return new static(compact('name'), null, null, null);
172+
$filter = new static(compact('name'), null, null, null);
173+
return $filter->save();
173174
}
174175

175176
/**

0 commit comments

Comments
 (0)