Skip to content
Snippets Groups Projects
Commit 83dc7ae0 authored by srosse's avatar srosse
Browse files

Merge OpenOLAT 10.4 to OpenOLAT 10.5 with f520f9b510d0d12133c2f2ac9f941e9c3e5c57fb

parents cc121690 b091560e
No related branches found
No related tags found
No related merge requests found
......@@ -64,9 +64,9 @@ public class ContactDAO {
sb.append("select contact.identity.key from businessgroup bgroup ")
.append(" inner join bgroup.baseGroup baseGroup")
.append(" inner join baseGroup.members contact")
.append(" where exists (select me.key from bgroupmember as me where me.group.key=baseGroup.key and me.identity.key=:identKey)")
.append(" and ((bgroup.ownersVisibleIntern=true and contact.role='coach')")
.append(" or (bgroup.participantsVisibleIntern=true and contact.role='participant'))");
.append(" inner join baseGroup.members me on (me.identity.key=:identKey)")
.append(" where (bgroup.ownersVisibleIntern=true and contact.role='coach')")
.append(" or (bgroup.participantsVisibleIntern=true and contact.role='participant')");
return dbInstance.getCurrentEntityManager().createQuery(sb.toString(), Long.class)
.setParameter("identKey", me.getKey())
......
......@@ -197,9 +197,9 @@ create view o_gp_contactkey_v as (
inner join o_bs_group_member as bg_member on (bg_member.fk_group_id = bgroup.fk_group_id)
inner join o_bs_group_member as bg_me on (bg_me.fk_group_id = bgroup.fk_group_id)
where
(bgroup.ownersintern=true and bg_member.g_role='coach')
(bgroup.ownersintern=1 and bg_member.g_role='coach')
or
(bgroup.participantsintern=true and bg_member.g_role='participant')
(bgroup.participantsintern=1 and bg_member.g_role='participant')
);
create view o_gp_contactext_v as (
......@@ -221,9 +221,9 @@ create view o_gp_contactext_v as (
inner join o_userproperty as last_member on (last_member.fk_user_id = us_member.user_id and last_member.propname='lastName')
inner join o_bs_group_member as bg_me on (bg_me.fk_group_id = bgroup.fk_group_id)
where
(bgroup.ownersintern=true and bg_member.g_role='coach')
(bgroup.ownersintern=1 and bg_member.g_role='coach')
or
(bgroup.participantsintern=true and bg_member.g_role='participant')
(bgroup.participantsintern=1 and bg_member.g_role='participant')
);
create or replace view o_re_membership_v as (
......
......@@ -1654,9 +1654,9 @@ create view o_gp_contactkey_v as (
inner join o_bs_group_member as bg_member on (bg_member.fk_group_id = bgroup.fk_group_id)
inner join o_bs_group_member as bg_me on (bg_me.fk_group_id = bgroup.fk_group_id)
where
(bgroup.ownersintern=true and bg_member.g_role='coach')
(bgroup.ownersintern=1 and bg_member.g_role='coach')
or
(bgroup.participantsintern=true and bg_member.g_role='participant')
(bgroup.participantsintern=1 and bg_member.g_role='participant')
);
create view o_gp_contactext_v as (
......@@ -1678,9 +1678,9 @@ create view o_gp_contactext_v as (
inner join o_userproperty as last_member on (last_member.fk_user_id = us_member.user_id and last_member.propname='lastName')
inner join o_bs_group_member as bg_me on (bg_me.fk_group_id = bgroup.fk_group_id)
where
(bgroup.ownersintern=true and bg_member.g_role='coach')
(bgroup.ownersintern=1 and bg_member.g_role='coach')
or
(bgroup.participantsintern=true and bg_member.g_role='participant')
(bgroup.participantsintern=1 and bg_member.g_role='participant')
);
......
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