Skip to content

Commit

Permalink
PRESIDECMS-2987 ListSites() filter should allow for nulls
Browse files Browse the repository at this point in the history
  • Loading branch information
sebduggan committed Dec 19, 2024
1 parent a063bb8 commit dff66ff
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 @@ -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 }
);
}

/**
Expand Down

0 comments on commit dff66ff

Please sign in to comment.