mirror of https://github.com/apache/cloudstack.git
bug 10199: don't allow network offering Name modification.
UI has to be fixed as well
This commit is contained in:
parent
766a501b59
commit
df5d40dc32
|
|
@ -41,9 +41,6 @@ public class UpdateNetworkOfferingCmd extends BaseCmd {
|
|||
|
||||
@Parameter(name=ApiConstants.ID, type=CommandType.LONG, description="the id of the network offering")
|
||||
private Long id;
|
||||
|
||||
@Parameter(name=ApiConstants.NAME, type=CommandType.STRING, description="the name of the network offering")
|
||||
private String networkOfferingName;
|
||||
|
||||
@Parameter(name=ApiConstants.DISPLAY_TEXT, type=CommandType.STRING, description="the display text of the network offering")
|
||||
private String displayText;
|
||||
|
|
@ -55,10 +52,7 @@ public class UpdateNetworkOfferingCmd extends BaseCmd {
|
|||
/////////////////// Accessors ///////////////////////
|
||||
/////////////////////////////////////////////////////
|
||||
|
||||
public String getNetworkOfferingName() {
|
||||
return networkOfferingName;
|
||||
}
|
||||
|
||||
|
||||
public String getDisplayText() {
|
||||
return displayText;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2771,7 +2771,6 @@ public class ConfigurationManagerImpl implements ConfigurationManager, Configura
|
|||
public NetworkOffering updateNetworkOffering(UpdateNetworkOfferingCmd cmd) {
|
||||
String displayText = cmd.getDisplayText();
|
||||
Long id = cmd.getId();
|
||||
String name = cmd.getNetworkOfferingName();
|
||||
String availabilityStr = cmd.getAvailability();
|
||||
Availability availability = null;
|
||||
|
||||
|
|
@ -2793,10 +2792,6 @@ public class ConfigurationManagerImpl implements ConfigurationManager, Configura
|
|||
|
||||
NetworkOfferingVO offering = _networkOfferingDao.createForUpdate(id);
|
||||
|
||||
if (name != null) {
|
||||
offering.setName(name);
|
||||
}
|
||||
|
||||
if (displayText != null) {
|
||||
offering.setDisplayText(displayText);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue