Skip to content

Commit

Permalink
[Core] Allow PaginationBuilder to handle separated parameters with '_'
Browse files Browse the repository at this point in the history
  • Loading branch information
TiSiE committed Dec 15, 2017
1 parent a837191 commit a165491
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ protected function setParameters($query)
$queryArray = $query->toArray();

foreach ($queryArray as $key => $value) {
if (preg_match('~^(?<separator>\W)(?<setArrayKeys>\W)?(?<name>.*)$~', $key, $match)) {
if (preg_match('~^(?<separator>\W|_)(?<setArrayKeys>\W|_)?(?<name>.*)$~', $key, $match)) {
$value = explode($match['separator'], $value);
if ('' !== $match['setArrayKeys']) {
foreach ($value as $v) {
Expand Down

0 comments on commit a165491

Please sign in to comment.