Open ericbrun-73 opened 1 year ago
Hello @ericbrun-73
Thank you for the complete feedback about your issue Looking at Redmine repo, cm-url data is set into a specific JS file : https://github.com/redmine/redmine/blob/15dcf9553eb5ca6672ddb79eb40263a27649c79b/public/javascripts/context_menu.js#L114 using a "relative" path (parent then aiming for the first element)
When I look at your screenshot I feel like it's not the default template from Redmine (looks like EasyRedmine to me) which may have altered default html structure. Can you list other plugins which may interfer with this page and which theme do you use (or specific Redmine instance such as EasyRedmine) ?
I'll try to check if we can switch this behaviour by not inserting a form tag but I think putting a static context menu URL is not the ideal idea (but in your case it could fix your issue temporarily) Do you have the same issue with the default Redmine theme ?
Have a good day
Hi, I use this plugin 0.8.1 (master branch) with Redmine 4.2.7. On issue with sub issue, the context menu is not show and a alert window say : "no url".![cap1](https://user-images.githubusercontent.com/37143722/206681247-84031362-e545-4c95-bd19-94914f71e79e.jpg)
I quick fix (hugly) this problem by add this "$(".issue.details ").wrap("<form id='fakeDynamicForm' data-cm-url='/redmine/issues/context_menu' >");" in issue_dynamic_edit.js (line 111).
Now the contextMenu is displayed and it is work well on sub issues.
Can you integrate a better fix in your project ?
Hope that help.
Thank you for your plugin
Eric