Skip to content

Commit

Permalink
Merge branch 'feature-PRESIDECMS-2985_get-sites-returns-deleted-sites…
Browse files Browse the repository at this point in the history
…' into release-10.28.0
  • Loading branch information
DominicWatson committed Dec 11, 2024
2 parents 6a30ac9 + b2d9143 commit ec4df5e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions system/services/siteTree/SiteService.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ component displayname="Site service" {
* @permissionService.inject permissionService
* @coldbox.inject coldbox
* @defaultSiteProtocol.inject coldbox:setting:defaultSiteProtocol
*
*
*/
public any function init( required any siteDao, required any siteAliasDomainDao, required any siteRedirectDomainDao, required any sessionStorage, required any permissionService, required any coldbox, required string defaultSiteProtocol ) output=false {
_setSiteDao( arguments.siteDao );
Expand All @@ -41,7 +41,7 @@ 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" );
return _getSiteDao().selectData( orderBy="name", filter={ deleted=false } );
}

/**
Expand Down

0 comments on commit ec4df5e

Please sign in to comment.