Skip to content

Commit cebdb61

Browse files
committed
use request set in crud instead of global request instance
1 parent 77f783d commit cebdb61

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/app/Library/CrudPanel/CrudFilter.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ public function __construct($options, $values, $logic, $fallbackLogic)
5151
$this->fallbackLogic = $fallbackLogic;
5252
}
5353

54-
if (\Request::has($this->name)) {
55-
$this->currentValue = \Request::input($this->name);
54+
if ($this->crud()->getRequest()->has($this->name)) {
55+
$this->currentValue = $this->crud()->getRequest()->input($this->name);
5656
}
5757
}
5858

@@ -64,7 +64,7 @@ public function __construct($options, $values, $logic, $fallbackLogic)
6464
*/
6565
public function isActive()
6666
{
67-
if (\Request::has($this->name)) {
67+
if ($this->crud()->getRequest()->has($this->name)) {
6868
return true;
6969
}
7070

0 commit comments

Comments
 (0)