[dss-commits] r8901 - dss/trunk/core
dss-commits at forum.digitalstrom.org
dss-commits at forum.digitalstrom.org
Mon Nov 9 16:50:32 CET 2009
Author: pstaehlin
Date: 2009-11-09 16:50:32 +0100 (Mon, 09 Nov 2009)
New Revision: 8901
Modified:
dss/trunk/core/webserver.cpp
Log:
Checking arguments is fine, but actually removing the zone helps
Closes #209
Modified: dss/trunk/core/webserver.cpp
===================================================================
--- dss/trunk/core/webserver.cpp 2009-11-09 15:50:30 UTC (rev 8900)
+++ dss/trunk/core/webserver.cpp 2009-11-09 15:50:32 UTC (rev 8901)
@@ -1435,6 +1435,7 @@
if(zone.getDevices().length() > 0) {
return ResultToJSON(false, "Cannot delete a non-empty zone");
}
+ getDSS().getApartment().removeZone(zoneID);
return JSONOk();
} catch(ItemNotFoundException&) {
return ResultToJSON(false, "Could not find zone");
More information about the dss-commits
mailing list