From fed0ff43d6a5f0e0dba662a0c6c625a36247b2d9 Mon Sep 17 00:00:00 2001 From: Jon Ziebell Date: Tue, 17 Dec 2019 07:08:28 -0500 Subject: [PATCH] Fixed #197 - Thermostat groups can sometimes get null or invalid data --- api/thermostat_group.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/api/thermostat_group.php b/api/thermostat_group.php index cefc001..2b3a9f9 100644 --- a/api/thermostat_group.php +++ b/api/thermostat_group.php @@ -315,7 +315,8 @@ class thermostat_group extends cora\crud { 'read', [ 'attributes' => [ - 'thermostat_group_id' => $thermostat_group_id + 'thermostat_group_id' => $thermostat_group_id, + 'inactive' => 0 ] ] );