Skip to content

Commit 078d49e

Browse files
committed
Fix filter fallback doesn't work issue
1 parent bf8f5c9 commit 078d49e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/app/Library/CrudPanel/CrudFilter.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,10 @@ public function apply($input = null)
106106
$input = $input ?? new ParameterBag($this->crud()->getRequest()->all());
107107

108108
if (! $input->has($this->name)) {
109+
// if fallback logic was supplied and is a closure
110+
if (is_callable($this->fallbackLogic)) {
111+
return ($this->fallbackLogic)();
112+
}
109113
return;
110114
}
111115

0 commit comments

Comments
 (0)