Updating the get content in recycle bin query as the parent is not necessarily -20
This commit is contained in:
@@ -352,7 +352,7 @@ namespace Umbraco.Core.Services
|
||||
{
|
||||
using (var repository = _repositoryFactory.CreateContentRepository(_uowProvider.GetUnitOfWork()))
|
||||
{
|
||||
var query = Query<IContent>.Builder.Where(x => x.ParentId == -20);
|
||||
var query = Query<IContent>.Builder.Where(x => x.Path.Contains("-20"));
|
||||
var contents = repository.GetByQuery(query);
|
||||
|
||||
return contents;
|
||||
|
||||
Reference in New Issue
Block a user