mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Alert Template - sort Alert Rules alphabetic (#11786)
This commit is contained in:
@@ -41,7 +41,7 @@ if ($template_edit) {
|
||||
];
|
||||
}
|
||||
|
||||
foreach (dbFetchRows("SELECT `id`,`rule`,`name` FROM `alert_rules`", []) as $rule) {
|
||||
foreach (dbFetchRows("SELECT `id`,`rule`,`name` FROM `alert_rules` order by `name`", []) as $rule) {
|
||||
$is_selected = $template_edit ? dbFetchCell("SELECT `alert_templates_id` FROM `alert_template_map` WHERE `alert_rule_id` = ? AND `alert_templates_id` = ?", [$rule['id'], $template_id]) : null;
|
||||
$is_available = dbFetchCell("SELECT `alert_templates_id` FROM `alert_template_map` WHERE `alert_rule_id` = ?", [$rule['id']]);
|
||||
$rules[] = [
|
||||
|
Reference in New Issue
Block a user