Commit 4b7e07bb authored by Nigel McNie's avatar Nigel McNie
Browse files

Unconditionally json_encode every config field being exported for blockinstances.



This allows us to unconditionally json_decode them on import without
worrying about whether they were encoded or not.
Signed-off-by: default avatarNigel McNie <nigel@catalyst.net.nz>
parent 6ab96d73
......@@ -300,10 +300,8 @@ abstract class PluginBlocktype extends Plugin {
unset($configdata['change']);
unset($configdata['new']);
foreach ($configdata as &$value) {
if (is_array($value) || is_object($value)) {
$value = json_encode($value);
}
foreach ($configdata as $key => &$value) {
$value = json_encode($value);
}
}
else {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment