Skip to content

Commit 60d1f0e

Browse files
authored
Fix frontend save template options error (joomla#45199)
Thanks for the fix @joomdonation and @exlemor & @krishnaGandhi11 for tests
1 parent 42d6359 commit 60d1f0e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

administrator/components/com_templates/src/Controller/StyleController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,9 @@ public function save($key = null, $urlVar = null)
5858
$item = $model->getItem($this->app->getTemplate(true)->id);
5959

6060
// Setting received params
61-
$item->set('params', $data);
61+
$item->params = $data;
6262

63-
$data = $item->getProperties();
63+
$data = get_object_vars($item);
6464
unset($data['xml']);
6565

6666
$key = $table->getKeyName();

0 commit comments

Comments
 (0)