Commit 102797d1 authored by Francois Marier's avatar Francois Marier Committed by Gerrit Code Review
Browse files

Merge "Fix display_name group membership lookups"

parents 2b494cfc d8d579e3
...@@ -853,7 +853,7 @@ function display_name($user, $userto=null, $nameonly=false, $realname=false, $us ...@@ -853,7 +853,7 @@ function display_name($user, $userto=null, $nameonly=false, $realname=false, $us
SELECT s.member SELECT s.member
FROM {group_member} s FROM {group_member} s
JOIN {group_member} t ON s.group = t.group JOIN {group_member} t ON s.group = t.group
JOIN {group} g ON (g.id = s.group AND g.deleted = 0) JOIN {group} g ON (g.id = s.group AND g.deleted = 0 AND g.submittableto = 1)
JOIN {grouptype_roles} gtr JOIN {grouptype_roles} gtr
ON (g.grouptype = gtr.grouptype AND gtr.role = t.role AND gtr.see_submitted_views = 1) ON (g.grouptype = gtr.grouptype AND gtr.role = t.role AND gtr.see_submitted_views = 1)
WHERE s.member = ? AND t.member = ?', WHERE s.member = ? AND t.member = ?',
......
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