Merge branch 'ent-8433-12934-Bug-en-filtro-de-eventos-con-mas-de-1-tag' into 'develop'

fixed event view filter

See merge request artica/pandorafms!4635
This commit is contained in:
vgilc 2022-01-25 09:25:47 +00:00
commit d43b046253

View File

@ -1157,7 +1157,7 @@ function events_get_all(
} }
if ($tags[0] === $id_tag) { if ($tags[0] === $id_tag) {
$_tmp .= ' AND ( '; $_tmp .= ' AND (( ';
} else { } else {
$_tmp .= ' OR ( '; $_tmp .= ' OR ( ';
} }
@ -1185,7 +1185,7 @@ function events_get_all(
$_tmp .= ') '; $_tmp .= ') ';
} }
$sql_filters[] = $_tmp; $sql_filters[] = $_tmp.')';
} }
} }