From 596089acfdc63be9b75ba8f8abb2589ff3fbf086 Mon Sep 17 00:00:00 2001 From: Seb Duggan Date: Wed, 18 Dec 2024 14:07:25 +0000 Subject: [PATCH 1/2] [twgit] Init feature 'feature-PRESIDECMS-2987_listsites-filter-should-allow-for-null-values'. From 633d19ae5222442eadb27857a47e5aeb7df9e597 Mon Sep 17 00:00:00 2001 From: Seb Duggan Date: Wed, 18 Dec 2024 14:09:14 +0000 Subject: [PATCH 2/2] PRESIDECMS-2987 ListSites() filter should allow for nulls --- system/services/siteTree/SiteService.cfc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/system/services/siteTree/SiteService.cfc b/system/services/siteTree/SiteService.cfc index 2daeae5e7..19aa3fce5 100644 --- a/system/services/siteTree/SiteService.cfc +++ b/system/services/siteTree/SiteService.cfc @@ -41,7 +41,11 @@ component displayname="Site service" { * Returns a query of all the registered sites */ public query function listSites() output=false autodoc=true { - return _getSiteDao().selectData( orderBy="name", filter={ deleted=false } ); + return _getSiteDao().selectData( + orderBy = "name" + , filter = "deleted is null or deleted=:deleted" + , filterParams = { deleted=false } + ); } /**