Merge branch 'ent-7532-11853-Cambio-comportamiento-tags-en-Widget-de-eventos-en-dashboards' into 'develop'

Ent 7532 11853 cambio comportamiento tags en widget de eventos en dashboards

See merge request artica/pandorafms!4233
This commit is contained in:
Daniel Rodriguez 2021-08-04 12:04:57 +00:00
commit 66ebc14dca
1 changed files with 6 additions and 1 deletions

View File

@ -1151,7 +1151,12 @@ function events_get_all(
$tags_names[$id_tag] = tags_get_name($id_tag);
}
$_tmp .= ' AND ( ';
if ($tags[0] === $id_tag) {
$_tmp .= ' AND ( ';
} else {
$_tmp .= ' OR ( ';
}
$_tmp .= sprintf(
' tags LIKE "%s" OR',
$tags_names[$id_tag]