mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-12 16:06:25 +02:00
change list_alerts function to handle GET filter not POST
This commit is contained in:
@@ -602,8 +602,8 @@ function list_alerts() {
|
||||
global $config;
|
||||
$app = \Slim\Slim::getInstance();
|
||||
$router = $app->router()->getCurrentRoute()->getParams();
|
||||
if (isset($_POST['state'])) {
|
||||
$param = array(mres($_POST['state']));
|
||||
if (isset($_GET['state'])) {
|
||||
$param = array(mres($_GET['state']));
|
||||
}
|
||||
else {
|
||||
$param = array('1');
|
||||
|
||||
Reference in New Issue
Block a user