mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 08:45:12 +02:00
Merge branch 'ent-8984-13630-Cuenta-de-plantillas-de-alerta-no-coincide' into 'develop'
Ent 8984 13630 cuenta de plantillas de alerta no coincide See merge request artica/pandorafms!4902
This commit is contained in:
commit
f48d3a9849
@ -352,14 +352,15 @@ if ($search_string) {
|
|||||||
$filter[] = "(name LIKE '%".$search_string."%' OR description LIKE '%".$search_string."%' OR value LIKE '%".$search_string."%')";
|
$filter[] = "(name LIKE '%".$search_string."%' OR description LIKE '%".$search_string."%' OR value LIKE '%".$search_string."%')";
|
||||||
}
|
}
|
||||||
|
|
||||||
$total_templates = alerts_get_alert_templates($filter, ['COUNT(*) AS total']);
|
|
||||||
$total_templates = $total_templates[0]['total'];
|
|
||||||
$filter['offset'] = (int) get_parameter('offset');
|
$filter['offset'] = (int) get_parameter('offset');
|
||||||
$filter['limit'] = (int) $config['block_size'];
|
$filter['limit'] = (int) $config['block_size'];
|
||||||
if (!is_user_admin($config['id_user'])) {
|
if (!is_user_admin($config['id_user'])) {
|
||||||
$filter['id_group'] = array_keys(users_get_groups(false, 'LM'));
|
$filter['id_group'] = array_keys(users_get_groups(false, 'LM'));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$total_templates = alerts_get_alert_templates($filter, ['COUNT(*) AS total']);
|
||||||
|
$total_templates = $total_templates[0]['total'];
|
||||||
|
|
||||||
$templates = alerts_get_alert_templates(
|
$templates = alerts_get_alert_templates(
|
||||||
$filter,
|
$filter,
|
||||||
[
|
[
|
||||||
|
Loading…
x
Reference in New Issue
Block a user