Skip to content

Commit

Permalink
[4.x] Fix settings component parameters of menuitems via API (#44119)
Browse files Browse the repository at this point in the history
* use correct type filter link attribute in menitem api

* cs fix

---------
  • Loading branch information
SniperSister authored Sep 25, 2024
1 parent 8f37e3c commit 0461c99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion administrator/components/com_menus/src/Model/ItemModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -998,7 +998,7 @@ protected function populateState()

$this->setState('item.type', $type);

$link = $app->isClient('api') ? $app->getInput()->get('link') :
$link = $app->isClient('api') ? $app->getInput()->get('link', null, 'string') :
$app->getUserState('com_menus.edit.item.link');

if ($link) {
Expand Down

0 comments on commit 0461c99

Please sign in to comment.