mirror of
https://github.com/Icinga/icingadb-web.git
synced 2026-05-28 04:36:06 -04:00
ColumnChooser: catch InvalidRelationException
This commit is contained in:
parent
cd6eb32720
commit
28fd72541e
1 changed files with 2 additions and 1 deletions
|
|
@ -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'));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue