From edbda2c5924e3982530241945eefcf6583b1dc43 Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Mon, 17 Oct 2016 16:57:25 +0000 Subject: [PATCH] IcingaObjectFieldLoader: silently ignore setValues ...when called for an object without custom var support --- library/Director/Web/Form/IcingaObjectFieldLoader.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/library/Director/Web/Form/IcingaObjectFieldLoader.php b/library/Director/Web/Form/IcingaObjectFieldLoader.php index 640c2417..eaad9a70 100644 --- a/library/Director/Web/Form/IcingaObjectFieldLoader.php +++ b/library/Director/Web/Form/IcingaObjectFieldLoader.php @@ -45,6 +45,10 @@ class IcingaObjectFieldLoader */ public function setValues($values, $prefix = null) { + if (! $this->object->supportsCustomVars()) { + return $this; + } + if ($prefix !== null) { $len = strlen($prefix); }