Merge pull request #539 from AndyButland/u4-5757
U4-5757 - Recycle bin list view issue
This commit is contained in:
@@ -507,7 +507,7 @@ namespace Umbraco.Core.Services
|
||||
|
||||
var query = Query<IContent>.Builder;
|
||||
//if the id is -1, then just get all
|
||||
if (id > 0)
|
||||
if (id != -1)
|
||||
{
|
||||
query.Where(x => x.ParentId == id);
|
||||
}
|
||||
@@ -537,7 +537,7 @@ namespace Umbraco.Core.Services
|
||||
|
||||
var query = Query<IContent>.Builder;
|
||||
//if the id is -1, then just get all
|
||||
if (id > 0)
|
||||
if (id != -1)
|
||||
{
|
||||
query.Where(x => x.Path.SqlContains(string.Format(",{0},", id), TextColumnType.NVarchar));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user