Simplify Url::addFilter()
This changes the rendered resulting Url from x&(y&z) to x&y&z. refs #10778
This commit is contained in:
parent
f6e4b0aed0
commit
5b0730574d
|
@ -219,10 +219,9 @@ class Url
|
||||||
public function addFilter($and)
|
public function addFilter($and)
|
||||||
{
|
{
|
||||||
$this->setQueryString(
|
$this->setQueryString(
|
||||||
Filter::matchAll(
|
Filter::fromQueryString($this->getQueryString())
|
||||||
$and,
|
->andFilter($and)
|
||||||
Filter::fromQueryString($this->getQueryString())
|
->toQueryString()
|
||||||
)->toQueryString()
|
|
||||||
);
|
);
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue