use the name of the configuration variable rather than the name of the command

This commit is contained in:
Kris McQueen 2010-10-06 18:28:12 -07:00
parent 1ae2273871
commit 6db9f377a3

View File

@ -192,7 +192,7 @@ public class ConfigurationManagerImpl implements ConfigurationManager {
public boolean updateConfiguration(UpdateCfgCmd cmd) throws InvalidParameterValueException, InternalErrorException{ public boolean updateConfiguration(UpdateCfgCmd cmd) throws InvalidParameterValueException, InternalErrorException{
Long userId = UserContext.current().getUserId(); Long userId = UserContext.current().getUserId();
String name = cmd.getName(); String name = cmd.getCfgName();
String value = cmd.getValue(); String value = cmd.getValue();
updateConfiguration (userId, name, value); updateConfiguration (userId, name, value);
if (_configDao.getValue(name).equalsIgnoreCase(value)) if (_configDao.getValue(name).equalsIgnoreCase(value))