mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Now save the connection value selected and remove when not needed
This commit is contained in:
@ -23,8 +23,6 @@ $desc = mres($_POST['desc']);
|
||||
|
||||
if( is_array($pattern) ) {
|
||||
$pattern = implode(" ", $pattern);
|
||||
$pattern = rtrim($pattern,'&&');
|
||||
$pattern = rtrim($pattern,'||');
|
||||
} elseif( !empty($_POST['pattern']) && !empty($_POST['condition']) && !empty($_POST['value']) ) {
|
||||
$pattern = '%'.$_POST['pattern'].' '.$_POST['condition'].' ';
|
||||
if( is_numeric($_POST['value']) ) {
|
||||
|
Reference in New Issue
Block a user