mirror of https://github.com/apache/cloudstack.git
bug 7553: cloudStack - Router page - change service - exclude service offering currently used by this router in service offering dropdown.
This commit is contained in:
parent
9125b79fe9
commit
7156213513
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue