Fix for creating site menu item via API - 500: Internal Server Error
Testing Instructions
Generate a token in your super user profile
API Call (POST) for: api/index.php/v1/menus/site/items
Body:
{"title":"automated test site menu item","menutype":"main-menu","access":"1","parent_id":"1","publish_down":"","publish_up":"","published":"1","template_style_id":"0","toggle_modules_assigned":"1","toggle_modules_published":"1","type":"component","alias":"","link":"","aliasoption":"1"}
Actual result BEFORE applying this Pull Request
500: Internal Server Error
Expected result AFTER applying this Pull Request
Works
Link to documentations
Please select:
Documentation link for docs.joomla.org:
No documentation changes for docs.joomla.org needed
Pull Request link for manual.joomla.org:
No documentation changes for manual.joomla.org needed
I have tested this item ✅ successfully on 0b7704b
This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/42782.