PolyGerrit: Fix change edit load on change screen

Revision name "edit" is contained twice in the URL and load change edit
was rejected with 404.

It seems that the problem was a bad rebase during cherry-pick of the
change: I7c7441b2f7 from master to stable-2.15 branch. On master it was
applied correctly, while on stable-2.15 branch double revision name was
added.

Bug: Issue 8940
Change-Id: Icc1c9c761d092602a764b815f08fa592a2a6c497
This commit is contained in:
David Ostrovsky 2018-05-09 08:45:35 +02:00
parent 8ab3d378cd
commit 8e5606c49d

View File

@ -926,8 +926,7 @@
if (patchRange.basePatchNum !== 'PARENT') {
endpoint += '?base=' + encodeURIComponent(patchRange.basePatchNum);
}
return this._getChangeURLAndFetch(changeNum, endpoint,
patchRange.patchNum);
return this._getChangeURLAndFetch(changeNum, endpoint);
},
getChangeFilesAsSpeciallySortedArray(changeNum, patchRange) {