Skip to content

Commit ee46e42

Browse files
committed
fix Grid _q GET key /wo component name
1 parent 67a3731 commit ee46e42

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Grid.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ protected function init(): void
139139
$this->stickyGet($this->paginator->name);
140140
}
141141

142-
$this->stickyGet('_q');
142+
$this->stickyGet($this->name . '_q');
143143
}
144144

145145
protected function initTable(): Table
@@ -342,7 +342,7 @@ public function addQuickSearch($fields = [], $hasAutoQuery = false)
342342
$view = View::addTo($this->menu
343343
->addMenuRight()->addItem()->setElement('div'));
344344

345-
$q = trim($this->stickyGet('_q') ?? '');
345+
$q = trim($this->stickyGet($this->name . '_q') ?? '');
346346
if ($q !== '') {
347347
$scope = Model\Scope::createOr();
348348
foreach ($fields as $field) {

0 commit comments

Comments
 (0)