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 8900283 + 1927cb6 commit 315658aCopy full SHA for 315658a
src/Grid/Filter/Group.php
@@ -256,7 +256,7 @@ public function condition($inputs)
256
257
$this->value = $value;
258
259
- $group = Arr::get($inputs, "{$this->id}_group");
+ $group = Arr::get($inputs, "{$this->sanitizeId()}_group");
260
261
if ($this->group->isEmpty()) {
262
call_user_func($this->builder, $this);
@@ -267,6 +267,18 @@ public function condition($inputs)
267
}
268
269
270
+ /**
271
+ * Sanitize the filter id.
272
+ *
273
+ * @return string
274
+ */
275
+ protected function sanitizeId()
276
+ {
277
+ if ($prefix = $this->parent()->grid()->getNamePrefix())
278
+ return str_replace($prefix, '', $this->id);
279
+ return $this->id;
280
+ }
281
+
282
/**
283
* Inject script to current page.
284
*/
0 commit comments