Here's a patch for a somewhat obscure bug.

_admin_menu_rebuild_links() tests for a "node/add" menu path using strpos($path, 'node/add') !== FALSE incorrectly causing a path defined by a custom module (eg "mymodule/node/add/...") to be placed in the admin menu.

This fix checks the that the path begins with node/add instead.

CommentFileSizeAuthor
admin_menu2.patch741 bytesAltaVida

Comments

sun’s picture

Status: Needs review » Reviewed & tested by the community

I didn't test this patch, but it makes perfectly sense.

sun’s picture

Status: Reviewed & tested by the community » Fixed

Committed, thanks.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.