Merge branch 'ent-7278-no-se-despliegan-agentes-en-templates-wizard-ni-en-generacion-dinamica-de-reports-desde' into 'develop'

minor fix while empty search condition

See merge request artica/pandorafms!4012
This commit is contained in:
Daniel Rodriguez 2021-04-08 07:49:16 +00:00
commit 4adb9827cb
1 changed files with 3 additions and 1 deletions

View File

@ -177,7 +177,9 @@ if (is_ajax() === true) {
$agents_aux = [];
foreach ($agents as $key => $value) {
if (preg_match('/'.$search.'/', io_safe_output($value)) === true) {
if (empty($search) === true) {
$agents_aux[$key] = $value;
} else if (preg_match('/'.$search.'/', io_safe_output($value)) === true) {
$agents_aux[$key] = $value;
}
}