forked from joomla/Component-Builder
Prevent getItem from clearing $item->params
Additional check added to params test to ensure that if parent::getItem values are not removed if present.
This commit is contained in:
parent
8c2618b691
commit
9760ac86a3
@ -82,7 +82,7 @@ class ###Component###Model###View### extends JModelAdmin
|
||||
{###LICENSE_LOCKED_CHECK###
|
||||
if ($item = parent::getItem($pk))
|
||||
{
|
||||
if (!empty($item->params))
|
||||
if (!empty($item->params) && !is_array($item->params))
|
||||
{
|
||||
// Convert the params field to an array.
|
||||
$registry = new Registry;
|
||||
|
Loading…
Reference in New Issue
Block a user