Merge pull request #539 from AndyButland/u4-5757

U4-5757 - Recycle bin list view issue
This commit is contained in:
Shannon Deminick
2014-11-18 10:07:55 +11:00

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