-
Notifications
You must be signed in to change notification settings - Fork 174
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
[Issue_tracker] bug fix for 20.3-release | can't edit an issue #4454
Conversation
@ridz1208 |
@@ -26,7 +26,7 @@ function formatColumn(column, cell, rowData, rowHeaders) { | |||
if (column === 'Title') { | |||
let cellLinks = []; | |||
cellLinks.push( | |||
<a href={loris.BaseURL + '/issue_tracker/issue/' + row['Issue ID']}> | |||
<a href={loris.BaseURL + '/issue_tracker/issue/?issueID=' + row['Issue ID']}> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not correct. The ID should be coming from the handle method parsing the URL at https://github.com/aces/Loris/blob/minor/modules/issue_tracker/php/issue.class.inc#L144
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@driusan If use RESTful API in this case, the "QueryString.get()" will get a null value.
Major branch is also using "?issueID=" on URL. I think if you need this to be fixed, it should be on Major branch.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
in that case the major branch is wrong and also needs to be fixed. The ID should be coming from the URL, not the query string
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@driusan will look into the handle
function and try to solve the issue
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
see previous comment
…4454) Fix bug where an issue could not be edited in issue tracker, they would create a new issue instead.
…4454) Fix bug where an issue could not be edited in issue tracker, they would create a new issue instead.
Brief summary of changes
Give an issueID on url.
This resolves issue...
https://redmine.cbrain.mcgill.ca/issues/16241
To test this change...
edit an issue