Skip to content

Commit 42d6359

Browse files
authored
Fix frontend module editing (joomla#45197)
Thanks to @joomdonation & testers
1 parent 1c0a919 commit 42d6359

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

administrator/components/com_modules/src/Controller/ModuleController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ public function save($key = null, $urlVar = null)
232232
$model = $this->getModel();
233233
$data = $this->input->post->get('jform', [], 'array');
234234
$item = $model->getItem($this->input->get('id'));
235-
$properties = $item->getProperties();
235+
$properties = get_object_vars($item);
236236

237237
if (isset($data['params'])) {
238238
unset($properties['params']);

components/com_config/src/View/Modules/HtmlView.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public function display($tpl = null)
6363
// @todo Move and clean up
6464
$module = (new \Joomla\Component\Modules\Administrator\Model\ModuleModel())->getItem(Factory::getApplication()->getInput()->getInt('id'));
6565

66-
$moduleData = $module->getProperties();
66+
$moduleData = get_object_vars($module);
6767
unset($moduleData['xml']);
6868

6969
/** @var \Joomla\Component\Config\Site\Model\ModulesModel $model */

0 commit comments

Comments
 (0)