Skip to content
Snippets Groups Projects
Commit 1377d3f5 authored by Sebastian Pongratz's avatar Sebastian Pongratz :ping_pong:
Browse files

Merge branch '2021.0_1076620_FixGetUserFavoriteGroups' into '2021.0'

[Projekt: xRM-ContactManagement][TicketNr.:...

See merge request xrm/basic!750
parents edfd7845 34ab0139
No related branches found
No related tags found
No related merge requests found
......@@ -93,7 +93,11 @@ FavoritesUtil.getUserFavoriteGroupsByContext = function(pContext)
.from("ASYS_RECORD")
.where("ASYS_RECORD.OBJECT_TYPE", pContext)
.arrayColumn();
//no context ids > groupNames where Condition will fail > return an empty array
if(idsOfContext.length == 0)
return allTypes;
var groupNames = (new SqlBuilder(alias)).selectDistinct("ASYS_RECORDGROUP.TITLE")
.from("ASYS_RECORDGROUP")
.where(filterCond)
......
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