From dff66ffeb09655600ed6c4a50d461b203d62057f Mon Sep 17 00:00:00 2001 From: Seb Duggan Date: Wed, 18 Dec 2024 14:09:14 +0000 Subject: [PATCH] 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 832f6c3f8..9df46178d 100644 --- a/system/services/siteTree/SiteService.cfc +++ b/system/services/siteTree/SiteService.cfc @@ -40,7 +40,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 } + ); } /**