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:
commit
4adb9827cb
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue