From 28fd72541ee6b3d245fbc3f18bc6070d99b1308b Mon Sep 17 00:00:00 2001 From: Bastian Lederer Date: Mon, 9 Mar 2026 15:38:37 +0100 Subject: [PATCH] `ColumnChooser`: catch `InvalidRelationException` --- library/Icingadb/Web/Control/ColumnChooser.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/library/Icingadb/Web/Control/ColumnChooser.php b/library/Icingadb/Web/Control/ColumnChooser.php index 2ccf1bdd..ac6ddebe 100644 --- a/library/Icingadb/Web/Control/ColumnChooser.php +++ b/library/Icingadb/Web/Control/ColumnChooser.php @@ -4,6 +4,7 @@ namespace Icinga\Module\Icingadb\Web\Control; +use ipl\Orm\Exception\InvalidRelationException; use ipl\Orm\Resolver; use ipl\Web\Compat\CompatForm; use ipl\Web\FormElement\TermInput; @@ -69,7 +70,7 @@ class ColumnChooser extends CompatForm if ($label !== null) { $term->setLabel($label); } - } catch (\Exception) { + } catch (InvalidRelationException) { $term->setMessage($this->translate('Is not a valid column')); } }