From 9760ac86a395a15e526ef0cdfc69d692ec6ac3cf Mon Sep 17 00:00:00 2001 From: Michael Richey Date: Fri, 24 Nov 2017 01:22:17 -0600 Subject: [PATCH] Prevent getItem from clearing $item->params Additional check added to params test to ensure that if parent::getItem values are not removed if present. --- admin/compiler/joomla_3/JModelAdmin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin/compiler/joomla_3/JModelAdmin.php b/admin/compiler/joomla_3/JModelAdmin.php index 47374e011..4ac9a3908 100644 --- a/admin/compiler/joomla_3/JModelAdmin.php +++ b/admin/compiler/joomla_3/JModelAdmin.php @@ -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;