Four errors: failure if location contains querystring/hashmark, failure to fetch journal from received doc and more#110
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.