Fixed the subform to allow encryption of values without data lose.

This commit is contained in:
2018-04-30 14:06:05 +02:00
parent cec566176d
commit 8b4efd640f
20 changed files with 340 additions and 280 deletions

View File

@ -100,12 +100,6 @@ class ComponentbuilderModelField extends JModelAdmin
$item->metadata = $registry->toArray();
}
if (!empty($item->xml))
{
// JSON Decode xml.
$item->xml = json_decode($item->xml);
}
if (!empty($item->css_views))
{
// base64 Decode css_views.
@ -130,6 +124,12 @@ class ComponentbuilderModelField extends JModelAdmin
$item->javascript_views_footer = base64_decode($item->javascript_views_footer);
}
if (!empty($item->xml))
{
// JSON Decode xml.
$item->xml = json_decode($item->xml);
}
if (empty($item->id))
{