Fixed filter that was returning all nodes for list view display of recycle bin

This commit is contained in:
AndyButland
2014-11-16 22:12:21 +01:00
parent a1a1b9ebb5
commit dfdf85fc0b

View File

@@ -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));
}