From dfdf85fc0badbce23f64d5a7ad8515a81f440acf Mon Sep 17 00:00:00 2001 From: AndyButland Date: Sun, 16 Nov 2014 22:12:21 +0100 Subject: [PATCH] Fixed filter that was returning all nodes for list view display of recycle bin --- src/Umbraco.Core/Services/ContentService.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Umbraco.Core/Services/ContentService.cs b/src/Umbraco.Core/Services/ContentService.cs index 00dd4ddb0e..421beacbf7 100644 --- a/src/Umbraco.Core/Services/ContentService.cs +++ b/src/Umbraco.Core/Services/ContentService.cs @@ -507,7 +507,7 @@ namespace Umbraco.Core.Services var query = Query.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.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)); }