String soneId = request.getHttpRequest().getParam("sone");
if (!webInterface.getCore().hasSone(soneId)) {
return createErrorJsonObject("invalid-sone-id");
String soneId = request.getHttpRequest().getParam("sone");
if (!webInterface.getCore().hasSone(soneId)) {
return createErrorJsonObject("invalid-sone-id");
- webInterface.getCore().saveSone(currentSone);
- return new JsonObject().put("success", true);
+ webInterface.getCore().touchConfiguration();
+ return createSuccessJsonObject();