Merge branch 'ent-8266-Error-sql-en-vista-de-agentes-de-una-política-en-metaconsola' into 'develop'

Ent 8266 error sql en vista de agentes de una política en metaconsola

See merge request artica/pandorafms!4532
This commit is contained in:
Daniel Rodriguez 2021-11-16 13:17:41 +00:00
commit 5782193a38
1 changed files with 4 additions and 0 deletions

View File

@ -1181,6 +1181,10 @@ function agents_get_group_agents(
}
}
if (isset($search['all_agents'])) {
unset($search['all_agents']);
}
if (isset($search['string']) === true) {
$string = io_safe_input($search['string']);
$filter[] = "(nombre COLLATE utf8_general_ci LIKE '%$string%' OR direccion LIKE '%$string%')";