mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00: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;
|
global $config;
|
||||||
$app = \Slim\Slim::getInstance();
|
$app = \Slim\Slim::getInstance();
|
||||||
$router = $app->router()->getCurrentRoute()->getParams();
|
$router = $app->router()->getCurrentRoute()->getParams();
|
||||||
if (isset($_POST['state'])) {
|
if (isset($_GET['state'])) {
|
||||||
$param = array(mres($_POST['state']));
|
$param = array(mres($_GET['state']));
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$param = array('1');
|
$param = array('1');
|
||||||
|
Reference in New Issue
Block a user