View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0032889||mantisbt||plug-ins||public||2023-08-29 05:18||2023-10-14 12:28|
|Target Version||2.25.8||Fixed in Version||2.25.8|
|Summary||0032889: EVENT_MENU_DOCS is never triggered|
The documentation says that EVENT_MENU_DOCS is for adding extra links to the "Docs" menu, but it is nowhere triggered.
|Steps To Reproduce|
It seems that the print_menu call in print_doc_menu function at core/html_api.php is missing a third, event name ('EVENT_MENU_DOCS') argument.
With it, my plugin works.
|Tags||No tags attached.|
Thanks for the report and patch.
I searched the Git history, and it looks like
Anyway the proposed fix is correct so I'll commit the change. Since you seem to be using Git, maybe next time you can send us a PR instead of copy/pasting a diff here.
Please note that the Projects Documentation feature is deprecated and may be removed in a future version of MantisBT.
MantisBT: master-2.25 15b6ddb8
|Trigger EVENT_MENU_DOCS in print_doc_menu()
The Event was never actually implemented since being defined back in
2007 (see dc8bec3839bd1b98be9094120bec9710ada1075b)
|mod - core/html_api.php||Diff File|