Prevent getItem from clearing $item->params #186
|
@ -82,7 +82,7 @@ class ###Component###Model###View### extends JModelAdmin
|
||||||
{###LICENSE_LOCKED_CHECK###
|
{###LICENSE_LOCKED_CHECK###
|
||||||
if ($item = parent::getItem($pk))
|
if ($item = parent::getItem($pk))
|
||||||
{
|
{
|
||||||
if (!empty($item->params))
|
if (!empty($item->params) && !is_array($item->params))
|
||||||
{
|
{
|
||||||
// Convert the params field to an array.
|
// Convert the params field to an array.
|
||||||
$registry = new Registry;
|
$registry = new Registry;
|
||||||
|
|
Loading…
Reference in New Issue