Merge branch '1389-Filtro-de-Tags-en-Eventos-dev' into 'develop'

Fixed search by tags in event list

See merge request !881
This commit is contained in:
vgilc 2017-10-05 09:54:11 +02:00
commit f063190294
1 changed files with 2 additions and 2 deletions

View File

@ -240,9 +240,9 @@ if (!empty($tag_with)) {
$sql_post .= " OR ";
$sql_post .= "tags LIKE '" . tags_get_name($id_tag) . ",%'";
$sql_post .= " OR ";
$sql_post .= "tags LIKE '%, " . tags_get_name($id_tag) . "'";
$sql_post .= "tags LIKE '%," . tags_get_name($id_tag) . "'";
$sql_post .= " OR ";
$sql_post .= "tags LIKE '%, " . tags_get_name($id_tag) . ",%'";
$sql_post .= "tags LIKE '%," . tags_get_name($id_tag) . ",%'";
}
$sql_post .= ' ) ';
}