Commit 22e5fa1b authored by Clare Lenihan's avatar Clare Lenihan Committed by Clare Lenihan
Browse files

updated search_groups so it works with groups marked as deleted

parent 44d6a382
......@@ -551,8 +551,8 @@ class PluginSearchInternal extends PluginSearch {
WHERE (
name ILIKE '%' || ? || '%'
OR description ILIKE '%' || ? || '%'
)";
$values = array($query_string, $query_string);
) AND deleted = ? ";
$values = array($query_string, $query_string, 0);
if ($type == 'member') {
$sql .= 'AND (
owner = ? OR id IN (
......@@ -582,7 +582,7 @@ class PluginSearchInternal extends PluginSearch {
WHERE (
name ILIKE '%' || ? || '%'
OR description ILIKE '%' || ? || '%'
)";
) AND deleted = ? ";
if ($type == 'member') {
$sql .= 'AND (
owner = ? OR id IN (
......@@ -619,8 +619,8 @@ class PluginSearchInternal extends PluginSearch {
WHERE (
name LIKE '%' || ? || '%'
OR description LIKE '%' || ? || '%'
)";
$values = array($query_string, $query_string);
) AND deleted = ? ";
$values = array($query_string, $query_string, 0);
if ($type == 'member') {
$sql .= 'AND (
owner = ? OR id IN (
......@@ -650,7 +650,7 @@ class PluginSearchInternal extends PluginSearch {
WHERE (
name LIKE '%' || ? || '%'
OR description LIKE '%' || ? || '%'
)";
) AND deleted = ? ";
if ($type == 'member') {
$sql .= 'AND (
owner = ? OR id IN (
......
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