Skip to content
Snippets Groups Projects
Commit 34ab0139 authored by Christoph Manhart's avatar Christoph Manhart
Browse files

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

[Projekt: xRM-ContactManagement][TicketNr.: 1076620][FavoritesUtil.getUserFavoriteGroupsByContext wirft Fehler, wenn keine Favoriten gesetzt sind]
Fix: sql will fail if no recordgroups set by the user
parent f4f173f2
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