Commit c3026e34 authored by Frank Bergmann's avatar Frank Bergmann

- continued with sending out MIME-mail

parent b4045e90
...@@ -34,19 +34,22 @@ where c.customer_id = :customer_id ...@@ -34,19 +34,22 @@ where c.customer_id = :customer_id
}] }]
set sql " set sql "
select select distinct
u.user_id, u.user_id,
im_name_from_user_id(u.user_id) as name, im_name_from_user_id(u.user_id) as name,
im_email_from_user_id(u.user_id) as email im_email_from_user_id(u.user_id) as email
from from
users u, users u,
acs_rels r, acs_rels r
group_member_map m
where where
r.object_id_one = :customer_id r.object_id_one = :customer_id
and r.object_id_two = u.user_id and r.object_id_two = u.user_id
and m.member_id = u.user_id and not exists (
and m.group_id=[im_customer_group_id] select member_id
from group_member_map m
where m.member_id = u.user_id
and m.group_id = [im_employee_group_id]
)
order by lower(name) order by lower(name)
" "
......
...@@ -37,19 +37,22 @@ where ...@@ -37,19 +37,22 @@ where
}] }]
set sql " set sql "
select select distinct
u.user_id, u.user_id,
im_name_from_user_id(u.user_id) as name, im_name_from_user_id(u.user_id) as name,
im_email_from_user_id(u.user_id) as email im_email_from_user_id(u.user_id) as email
from from
users u, users u,
acs_rels r, acs_rels r
group_member_map m
where where
r.object_id_one = :customer_id r.object_id_one = :customer_id
and r.object_id_two = u.user_id and r.object_id_two = u.user_id
and m.member_id = u.user_id and not exists (
and m.group_id=[im_customer_group_id] select member_id
from group_member_map m
where m.member_id = u.user_id
and m.group_id = [im_employee_group_id]
)
order by lower(name) order by lower(name)
" "
......
...@@ -270,7 +270,7 @@ set company_members [im_group_member_component $customer_id $user_id $admin $ret ...@@ -270,7 +270,7 @@ set company_members [im_group_member_component $customer_id $user_id $admin $ret
set enable_project_estimates 0 set enable_project_estimates 0
set also_add_to_group [im_customer_group_id] set also_add_to_group [im_customer_group_id]
set customer_members [im_group_member_component $customer_id $user_id $admin $return_url [im_customer_group_id] [im_employee_group_id] $also_add_to_group] set customer_members [im_group_member_component $customer_id $user_id $admin $return_url "" [im_employee_group_id] $also_add_to_group]
......
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