bug 7553: cloudStack - Router page - change service - exclude service offering currently used by this router in service offering dropdown.

This commit is contained in:
Jessica Wang 2011-06-06 15:55:48 -07:00
parent 9125b79fe9
commit 7156213513
1 changed files with 4 additions and 2 deletions

View File

@ -321,8 +321,10 @@ function doChangeSystemServiceOffering($actionLink, $detailsTab, $midmenuItem1)
if (offerings != null && offerings.length > 0) {
for (var i = 0; i < offerings.length; i++) {
var option = $("<option value='" + offerings[i].id + "'>" + fromdb(offerings[i].displaytext) + "</option>").data("name", fromdb(offerings[i].name));
offeringSelect.append(option);
if(offerings[i].id != jsonObj.serviceofferingid) {
var option = $("<option value='" + offerings[i].id + "'>" + fromdb(offerings[i].name) + "</option>").data("name", fromdb(offerings[i].name));
offeringSelect.append(option);
}
}
}
}