diff --git a/libraries/joomla/form/form.php b/libraries/joomla/form/form.php index 26d3dfe770574..26eceb70cd30b 100644 --- a/libraries/joomla/form/form.php +++ b/libraries/joomla/form/form.php @@ -129,8 +129,8 @@ public function bind($data) } elseif ($data instanceof JObject) { - // Handle a JObject. - $data = $data->getProperties(); + // Handle a JObject. Getting just the properties won't work. We need to convert any nested JObject too. + $data = JArrayHelper::fromObject($data); } else {