Skip to content

Commit

Permalink
Merge branch 'feature-PRESIDECMS-2987_listsites-filter-should-allow-f…
Browse files Browse the repository at this point in the history
…or-null-values' into release-10.28.0
  • Loading branch information
sebduggan committed Dec 18, 2024
2 parents 72a43f2 + 633d19a commit cb839fa
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion system/services/siteTree/SiteService.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
);
}

/**
Expand Down

0 comments on commit cb839fa

Please sign in to comment.