diff --git a/includes/html/modal/new_service_template.inc.php b/includes/html/modal/new_service_template.inc.php index 00352ae2e5..811d3ded73 100644 --- a/includes/html/modal/new_service_template.inc.php +++ b/includes/html/modal/new_service_template.inc.php @@ -12,6 +12,9 @@ */ if (Auth::user()->hasGlobalAdmin()) { + foreach (dbFetchRows('SELECT * FROM `device_groups` ORDER BY `name`') as $device_group) { + $devicegroupsform .= "'; + } // Build the types list. $dir = \LibreNMS\Config::get('nagios_plugins'); if (file_exists($dir) && is_dir($dir)) { @@ -43,6 +46,16 @@ if (Auth::user()->hasGlobalAdmin()) { +