From f81f6167d523204fdd151df5fe163f32e6dbfb39 Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Fri, 28 Aug 2015 18:17:21 +0200 Subject: [PATCH] CustomVariable: store format on modification --- library/Director/CustomVariable/CustomVariables.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 ); }