We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 062f04a + 6f60f64 commit f7d4655Copy full SHA for f7d4655
src/app/Library/CrudPanel/CrudFilter.php
@@ -106,6 +106,11 @@ public function apply($input = null)
106
$input = $input ?? new ParameterBag($this->crud()->getRequest()->all());
107
108
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
+ }
113
+
114
return;
115
}
116
@@ -115,11 +120,6 @@ public function apply($input = null)
120
} else {
121
return $this->applyDefaultLogic($this->name, false);
117
122
118
-
119
- // if fallback logic was supplied and is a closure
- if (is_callable($this->fallbackLogic)) {
- return ($this->fallbackLogic)();
- }
123
124
125
/**
0 commit comments