From 34e884de75605c3f2abf18f53636d70362961bad Mon Sep 17 00:00:00 2001 From: "d.buechler" <d.buechler@adito.de> Date: Fri, 25 Sep 2020 14:45:13 +0200 Subject: [PATCH] #1063108 Usage of tools api; Bugfix to use the new api correctly (cherry picked from commit ab25a53a82d9717431317b3d1825cb9d99cd4ad9) --- .../recordcontainers/jditorecordcontainer/contentProcess.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/entity/Favorite_entity/recordcontainers/jditorecordcontainer/contentProcess.js b/entity/Favorite_entity/recordcontainers/jditorecordcontainer/contentProcess.js index 44896b2fff..3bf9fefa02 100644 --- a/entity/Favorite_entity/recordcontainers/jditorecordcontainer/contentProcess.js +++ b/entity/Favorite_entity/recordcontainers/jditorecordcontainer/contentProcess.js @@ -15,7 +15,7 @@ if(vars.get("$local.idvalues") && vars.get("$local.idvalues").length != 0) for(h = 0; h < selected.length; h++) selectedFavos.push(buildFavoriteForDeletion(favorite.getFavorites(favorite.createGetFavoriteByIdConfig() - .setId(selected[h])))); + .setId(selected[h]))[0])); result.object(selectedFavos); } @@ -35,7 +35,7 @@ else for(i = 0; i < allContexts.length; i++) { var allFavorites = favorite.getFavorites(favorite.createGetFavoritesConfig() - .setUserId(tools.getCurrentUser()["name"]) + .setUserId(tools.getCurrentUser()[tools.NAME]) .setObjectType(allContexts[i])); var builtFavos = buildFavorites(allFavorites, allContexts[i]); -- GitLab