Filter/Errors

* move checks to __construct so they can be run on $_POST data
   and don't create malformed filter urls
 * if we received malformed $_GET params, build new params and reload
 * do not store error state in cache
 * cleanup
This commit is contained in:
Sarjuuk
2025-10-14 19:36:47 +02:00
parent c0097f3987
commit 37beaa2db5
18 changed files with 280 additions and 202 deletions

View File

@@ -269,8 +269,8 @@ class ProfileListFilter extends Filter
{
parent::__construct($data, $opts);
if (!empty($this->criteria['cr']))
if (array_intersect($this->criteria['cr'], [2, 5, 6, 7, 21]))
if (!empty($this->values['cr']))
if (array_intersect($this->values['cr'], [2, 5, 6, 7, 21]))
$this->useLocalList = true;
}