Commit 55eeb16d authored by Frank Bergmann's avatar Frank Bergmann

- Helpdesk:

  Calculating the list of customer contacts
  based on SLA and customer members including
  now groups
parent a26f09ee
...@@ -506,8 +506,20 @@ if {[exists_and_not_null ticket_customer_id]} { ...@@ -506,8 +506,20 @@ if {[exists_and_not_null ticket_customer_id]} {
where u.user_id in ( where u.user_id in (
-- Members of group helpdesk -- Members of group helpdesk
select member_id from group_distinct_member_map where group_id = [im_profile_helpdesk] select member_id from group_distinct_member_map where group_id = [im_profile_helpdesk]
-- Members of the ticket customer
UNION select object_id_two from acs_rels where object_id_one = :ticket_customer_id UNION select object_id_two from acs_rels where object_id_one = :ticket_customer_id
UNION select member_id
from group_member_map gmm,
acs_rels r
where r.object_id_two = gmm.group_id and
r.object_id_one = :ticket_customer_id
-- Members of the ticket SLA
UNION select object_id_two from acs_rels where object_id_one = :ticket_sla_id UNION select object_id_two from acs_rels where object_id_one = :ticket_sla_id
UNION select member_id
from group_member_map gmm,
acs_rels r
where r.object_id_two = gmm.group_id and
r.object_id_one = :ticket_sla_id
) and ) and
user_id not in ( user_id not in (
select u.user_id select u.user_id
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment