Skip to content

add/edit menu item broken for types "custom page" and "custom block" #84

@deepend-tildeclub

Description

@deepend-tildeclub

The errors I get in debug mode are:

Notice: Undefined index: menucategory in /home/mysite/public_html/site/members/include/admin/managemenu/edit_item.php on line 139

Notice: Undefined index: sectioninfo in /home/mysite/public_html/site/members/include/admin/managemenu/edit_item.php on line 182

Notice: Trying to access array offset on value of type null in /home/mysite/public_html/site/members/include/admin/managemenu/edit_item.php on line 278

Notice: Trying to access array offset on value of type null in /home/mysite/public_html/site/members/include/admin/managemenu/edit_item.php on line 279

Notice: Trying to access array offset on value of type null in /home/mysite/public_html/site/members/include/admin/managemenu/edit_item.php on line 280

Notice: Trying to access array offset on value of type null in /home/mysite/public_html/site/members/include/admin/managemenu/edit_item.php on line 281

Notice: Undefined index: itemname in /home/mysite/public_html/site/members/include/admin/managemenu/edit_item.php on line 525

The issue I'm having is for example if I am adding a menu item of the "custom page" item type and then I select the page I want the link to be from the other drop down menu.. It always saves as if I selected the middle option. (there are currently 3 options on my custom page drop down).

Similar issue when selecting other menu options as well.. Like "custom block" doesn't save whatever you enter as the code you want.

Not sure which of those errors is most likely to cause the issues or if a few of them are.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug-v4Bugs that appear in the original scripts.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions