Fixed the subform to allow encryption of values without data lose.
This commit is contained in:
@ -100,14 +100,6 @@ class ComponentbuilderModelJoomla_component extends JModelAdmin
|
||||
$item->metadata = $registry->toArray();
|
||||
}
|
||||
|
||||
if (!empty($item->addcontributors))
|
||||
{
|
||||
// Convert the addcontributors field to an array.
|
||||
$addcontributors = new Registry;
|
||||
$addcontributors->loadString($item->addcontributors);
|
||||
$item->addcontributors = $addcontributors->toArray();
|
||||
}
|
||||
|
||||
if (!empty($item->php_postflight_update))
|
||||
{
|
||||
// base64 Decode php_postflight_update.
|
||||
@ -221,6 +213,14 @@ class ComponentbuilderModelJoomla_component extends JModelAdmin
|
||||
$item->export_key = rtrim($basic->decryptString($item->export_key), "\0");
|
||||
}
|
||||
|
||||
if (!empty($item->addcontributors))
|
||||
{
|
||||
// Convert the addcontributors field to an array.
|
||||
$addcontributors = new Registry;
|
||||
$addcontributors->loadString($item->addcontributors);
|
||||
$item->addcontributors = $addcontributors->toArray();
|
||||
}
|
||||
|
||||
|
||||
if (empty($item->id))
|
||||
{
|
||||
|
Reference in New Issue
Block a user