Skip to content

Commit 19cd3ab

Browse files
authored
Merge pull request #4822 from Laravel-Backpack/fix-crudfilter-initialization-from-class
Fix CrudFilter initialization from static class method.
2 parents c534a5f + 0ae40c8 commit 19cd3ab

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/app/Library/CrudPanel/CrudFilter.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,9 @@ public function getNamespacedViewWithFallbacks()
181181
*/
182182
public static function name($name)
183183
{
184-
return new static(compact('name'), null, null, null);
184+
$filter = new static(compact('name'), null, null, null);
185+
186+
return $filter->save();
185187
}
186188

187189
/**

0 commit comments

Comments
 (0)