Commit 202f0ff4 authored by Nigel McNie's avatar Nigel McNie Committed by Penny Leach
Browse files

Corrected quoting for field names. Using the braces will cause the prefix to be added

parent 19ed8ab2
......@@ -291,7 +291,7 @@ class PluginSearchInternal extends PluginSearch {
if (!$all) {
$sql .= 'AND (
owner = ? OR id IN (
SELECT {group} FROM {group_member} WHERE member = ?
SELECT "group" FROM {group_member} WHERE member = ?
)
)';
$values[] = $USER->get('id');
......@@ -309,12 +309,12 @@ class PluginSearchInternal extends PluginSearch {
OR description ILIKE '%' || ? || '%'
)";
if (!$all) {
$sql .= "AND (
$sql .= 'AND (
owner = ? OR id IN (
SELECT {group} FROM {group_member} WHERE member = ?
SELECT "group" FROM {group_member} WHERE member = ?
)
)
";
';
}
$count = get_field_sql($sql, $values);
......
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