Fixes U4-1578
This commit is contained in:
@@ -338,7 +338,7 @@ namespace Umbraco.Core.Services
|
||||
{
|
||||
using (var repository = _repositoryFactory.CreateContentRepository(_uowProvider.GetUnitOfWork()))
|
||||
{
|
||||
var query = Query<IContent>.Builder.Where(x => x.Published == true && x.Id == id);
|
||||
var query = Query<IContent>.Builder.Where(x => x.Published == true && x.Id == id && x.Trashed == false);
|
||||
int count = repository.Count(query);
|
||||
return count > 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user