[dss-commits] r8902 - dss/branches/0.6/core

dss-commits at forum.digitalstrom.org dss-commits at forum.digitalstrom.org
Mon Nov 9 17:05:13 CET 2009


Author: pstaehlin
Date: 2009-11-09 17:05:13 +0100 (Mon, 09 Nov 2009)
New Revision: 8902

Modified:
   dss/branches/0.6/core/webserver.cpp
Log:
Checking arguments is fine, but actually removing the zone helps

Closes #209

Modified: dss/branches/0.6/core/webserver.cpp
===================================================================
--- dss/branches/0.6/core/webserver.cpp	2009-11-09 15:50:32 UTC (rev 8901)
+++ dss/branches/0.6/core/webserver.cpp	2009-11-09 16:05:13 UTC (rev 8902)
@@ -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