Relocate bug_tag in logABug generated URL

The content of field.comment may contain characters that confuse
Launchpad and block it from recognizing field.tags, so move the
location of the tags specification to earlier in the URL.

Change-Id: I62ce0a93ca963fe412f17e56aab743ac9c3deb98
Closes-bug: #1766705
This commit is contained in:
Brian Rosmaita 2018-04-24 16:38:41 -04:00
parent bbc7a2a2e1
commit 26553fa96a
1 changed files with 2 additions and 2 deletions

View File

@ -129,10 +129,10 @@ function logABug(bugTitle, bugProject, fieldComment, fieldTags) {
bugLink = urlBase + bugProject;
} else {
bugLink = urlBase + encodeURIComponent(bugTitle) +
"&field.tags=" + fieldTags +
"&field.comment=" + lineFeed + lineFeed + lineFeed +
bugChecklist + lineFeed + "-----------------------------------" + lineFeed + fieldComment +
lineFeed + currentURL +
"&field.tags=" + fieldTags;
lineFeed + currentURL;
}
document.getElementById("logABugLink1").href=bugLink;
document.getElementById("logABugLink2").href=bugLink;