mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-31 01:34:09 +02:00
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)
|
||||
{
|
||||
$this->setQueryString(
|
||||
Filter::matchAll(
|
||||
$and,
|
||||
Filter::fromQueryString($this->getQueryString())
|
||||
)->toQueryString()
|
||||
Filter::fromQueryString($this->getQueryString())
|
||||
->andFilter($and)
|
||||
->toQueryString()
|
||||
);
|
||||
return $this;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user