Commit 36ee24c2 authored by Nigel McNie's avatar Nigel McNie Committed by Penny Leach
Browse files

Corrected table aliases broken by the community -> group rename

parent 66625366
......@@ -43,7 +43,7 @@ $count = count_records('view', 'owner', $userid);
/* Do this in one query sometime */
$viewdata = get_records_sql_array('SELECT v.id,v.title,v.startdate,v.stopdate,v.description,c.name
$viewdata = get_records_sql_array('SELECT v.id,v.title,v.startdate,v.stopdate,v.description,g.name
FROM {view} v
LEFT OUTER JOIN {group} g ON v.submittedto = g.id
WHERE v.owner = ' . $userid . '
......@@ -99,7 +99,7 @@ if ($viewdata) {
a tutor member. This is the list of groups that the user is
able to submit views to. */
if (!$tutorgroupdata = @get_records_sql_array('SELECT c.id, c.name
if (!$tutorgroupdata = @get_records_sql_array('SELECT g.id, g.name
FROM {group_member} u
INNER JOIN {group} g ON u.group = g.id
INNER JOIN {group_member} t ON t.group = g.id
......
Supports Markdown
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