mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-28 00:24:21 +02:00
Now save the connection value selected and remove when not needed
This commit is contained in:
@@ -63,6 +63,8 @@ function GenGroupSQL($pattern,$search='') {
|
||||
*/
|
||||
function GetDevicesFromGroup($group_id) {
|
||||
$pattern = dbFetchCell("SELECT pattern FROM device_groups WHERE id = ?",array($group_id));
|
||||
$pattern = rtrim($pattern,'&&');
|
||||
$pattern = rtrim($pattern,'||');
|
||||
if( !empty($pattern) ) {
|
||||
return dbFetchRows(GenGroupSQL($pattern));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user