From fc422eb7ae66e0c02a3c357492cd5e8be135db35 Mon Sep 17 00:00:00 2001 From: Luca Haid Date: Thu, 17 Jul 2025 13:48:55 +0200 Subject: [PATCH] fixed import bugs and filter --- application/ConstructionConsent/ConstructionConsent.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/ConstructionConsent/ConstructionConsent.php b/application/ConstructionConsent/ConstructionConsent.php index f65b14df2..eb2931f17 100644 --- a/application/ConstructionConsent/ConstructionConsent.php +++ b/application/ConstructionConsent/ConstructionConsent.php @@ -435,7 +435,7 @@ class ConstructionConsent extends mfBaseModel { END), 0) > 0 OR COALESCE(SUM(CASE WHEN approve_override = 1 THEN 0 - ELSE (cwo.result = 'open') + ELSE (cwo.result = 'open' AND cwo.status != 'new') END), 0) > 0 OR COALESCE(SUM(CASE WHEN approve_override = 1 THEN 0