From ee47ea20262f5a1a3f787fe6658bd4b969a278b7 Mon Sep 17 00:00:00 2001 From: Jeavon Date: Thu, 15 Oct 2015 16:29:40 +0100 Subject: [PATCH] Fix for U4-7260 - Multi node tree picker with no selection can cause a error to display in the backoffice --- .../src/common/resources/entity.resource.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Umbraco.Web.UI.Client/src/common/resources/entity.resource.js b/src/Umbraco.Web.UI.Client/src/common/resources/entity.resource.js index c136f88bc7..500f0fbad2 100644 --- a/src/Umbraco.Web.UI.Client/src/common/resources/entity.resource.js +++ b/src/Umbraco.Web.UI.Client/src/common/resources/entity.resource.js @@ -139,6 +139,12 @@ function entityResource($q, $http, umbRequestHelper) { _.each(ids, function(item) { query += "ids=" + item + "&"; }); + + // if ids array is empty we need a empty variable in the querystring otherwise the service returns a error + if (ids.length === 0) { + query += "ids=&"; + } + query += "type=" + type; return umbRequestHelper.resourcePromise(