[DDC-551] Keep filter parameters and enabled filters sorted for hashing
This commit is contained in:
parent
277fc751b6
commit
d1908f7207
@ -763,6 +763,9 @@ class EntityManager implements ObjectManager
|
||||
|
||||
if(!isset($this->enabledFilters[$name])) {
|
||||
$this->enabledFilters[$name] = new $filterClass($this->conn);
|
||||
|
||||
// Keep the enabled filters sorted for the hash
|
||||
ksort($this->enabledFilters);
|
||||
}
|
||||
|
||||
return $this->enabledFilters[$name];
|
||||
|
@ -47,6 +47,9 @@ abstract class SQLFilter
|
||||
// @todo: check for a valid type?
|
||||
$this->parameters[$name] = array('value' => $value, 'type' => $type);
|
||||
|
||||
// Keep the parameters sorted for the hash
|
||||
ksort($this->parameters);
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user