-
Notifications
You must be signed in to change notification settings - Fork 55
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
Four errors: failure if location contains querystring/hashmark, failure to fetch journal from received doc and more #110
base: master
Are you sure you want to change the base?
Conversation
…d protection against failure to get journal related to dynamic change
Actually, the error 2 was happening only in case
was used. UPDATE: I have added code to support comments in reverse order. |
…ld not be visible if current tab is tab-notes
Also, when adding journal for issue details changes, if the current tab is tab-notes, the journal should be added but not be made visible. I have added another commit to resolve this. |
Regarding the problem of absent history, I have added code to create it if necessary. |
So to summarize what this PR contemplates:
|
Hi, while testing redmine_issue_dynamic_edit with latest redmine:
wiithout any other plugins installed I verified that if the tab location contains querystrings (or hashmark) like:
the plugin javascript code will crash with this:
This is happening because the code will try to do a fetch for:
So I added code to clean up the LOCATION_HREF at the beginning of the script.
Also, no matter if the LOCATION_HREF is clean or not, when handling the response from the server, the code will crash at another spot:
I added code to solve this too.