CustomVariable: store format on modification

This commit is contained in:
Thomas Gelf 2015-08-28 18:17:21 +02:00
parent 0c3e316bb9
commit f81f6167d5
1 changed files with 4 additions and 1 deletions

View File

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