diff --git a/library/Director/CustomVariable/CustomVariables.php b/library/Director/CustomVariable/CustomVariables.php index f1a734cd..b54fd0bc 100644 --- a/library/Director/CustomVariable/CustomVariables.php +++ b/library/Director/CustomVariable/CustomVariables.php @@ -148,7 +148,10 @@ class CustomVariables implements Iterator, Countable, IcingaConfigRenderer } elseif ($var->hasBeenModified()) { $db->update( $table, - array('varvalue' => $var->getDbValue()), + array( + 'varvalue' => $var->getDbValue(), + 'format' => $var->getDbFormat() + ), $where ); }