Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error : "no url" alert on sub issues #101

Open
ericbrun-73 opened this issue Dec 9, 2022 · 1 comment
Open

Error : "no url" alert on sub issues #101

ericbrun-73 opened this issue Dec 9, 2022 · 1 comment
Labels
bug conflict An other plugin breaks the normal behavior

Comments

@ericbrun-73
Copy link

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

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

@Ilogeek
Copy link
Owner

Ilogeek commented Dec 27, 2022

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

@Ilogeek Ilogeek added bug conflict An other plugin breaks the normal behavior labels Dec 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug conflict An other plugin breaks the normal behavior
Projects
None yet
Development

No branches or pull requests

2 participants