From 5663a07b72ecf6ec8448ec99f02e97275cd7b7bc Mon Sep 17 00:00:00 2001 From: Alexander Killing Date: Tue, 3 Oct 2023 09:57:58 +0200 Subject: [PATCH] filter: fixed 38103: Deleting a Comment throws error --- Services/UI/classes/class.ilUIFilterService.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Services/UI/classes/class.ilUIFilterService.php b/Services/UI/classes/class.ilUIFilterService.php index c9b7bd008bc4..7548de822538 100644 --- a/Services/UI/classes/class.ilUIFilterService.php +++ b/Services/UI/classes/class.ilUIFilterService.php @@ -102,7 +102,10 @@ public function standard( // values $val = $this->session->getValue($filter_id, $input_id); if (!is_null($val)) { - $i = $i->withValue($val); + try { + $i = $i->withValue($val); + } catch (InvalidArgumentException $e) { + } } $inputs_with_session_data[$input_id] = $i; }