Merge branch 'ent-13719-17618-post-filtro-not-en-vista-de-eventos-lo-hace-mal' into 'develop'

Ent 13719 17618 post filtro not en vista de eventos lo hace mal

See merge request artica/pandorafms!7376
This commit is contained in:
Diego Muñoz-Reja 2024-05-14 12:11:55 +00:00
commit 762f848d0f
1 changed files with 1 additions and 12 deletions

View File

@ -1158,17 +1158,6 @@ function events_get_all(
// Free search.
if (empty($filter['search']) === false) {
if (isset($config['dbconnection']->server_version) === true
&& $config['dbconnection']->server_version > 50600
) {
// Use "from_base64" requires mysql 5.6 or greater.
$custom_data_search = 'from_base64(te.custom_data)';
} else {
// Custom data is JSON encoded base64, if 5.6 or lower,
// user is condemned to use plain search.
$custom_data_search = 'te.custom_data';
}
$not_search = '';
$nexo = 'OR';
$array_search = [
@ -1176,7 +1165,7 @@ function events_get_all(
'lower(te.evento)',
'lower(te.id_extra)',
'lower(te.source)',
'lower('.$custom_data_search.')',
'lower(te.custom_data)',
];
if (isset($filter['not_search']) === true
&& empty($filter['not_search']) === false