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); }