home · contact · privacy
Fix Condition POSTing not properly setting .is_active.
authorChristian Heller <c.heller@plomlompom.de>
Mon, 17 Jun 2024 12:39:26 +0000 (14:39 +0200)
committerChristian Heller <c.heller@plomlompom.de>
Mon, 17 Jun 2024 12:39:26 +0000 (14:39 +0200)
plomtask/http.py

index 55473ea85410f840a6bbfe32e41ba245b1a85202..a5e46132dec446952cc2c98cce153c890c6c310e 100644 (file)
@@ -677,7 +677,7 @@ class TaskHandler(BaseHTTPRequestHandler):
             condition.remove(self.conn)
             return '/conditions'
         condition = Condition.by_id(self.conn, id_, create=True)
-        condition.is_active = self._form_data.get_all_str('is_active') != []
+        condition.is_active = self._form_data.get_str('is_active') == 'True'
         condition.title.set(self._form_data.get_str('title'))
         condition.description.set(self._form_data.get_str('description'))
         condition.save(self.conn)