bug 10638: cloudStack - router page - change service offering action - exclude the current service offering that router is having from service offering dropdown.

This commit is contained in:
Jessica Wang 2011-07-22 15:53:34 -07:00
parent 5fdb167203
commit 9612da122c

View File

@ -329,10 +329,10 @@ function doChangeSystemServiceOffering($actionLink, $detailsTab, $midmenuItem1)
if (offerings != null && offerings.length > 0) {
for (var i = 0; i < offerings.length; i++) {
//if(offerings[i].id != jsonObj.serviceofferingid) {
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);
//}
}
}
}
}