Skip to content
Snippets Groups Projects
Commit 34e884de authored by David Büchler's avatar David Büchler
Browse files

#1063108 Usage of tools api; Bugfix to use the new api correctly

(cherry picked from commit ab25a53a)
parent b6a27d57
No related branches found
No related tags found
No related merge requests found
......@@ -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]);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment