Merge branch 'ent-9822-14530-Problemas-en-Widgets-de-Dashboard' into 'develop'

minor fix

See merge request artica/pandorafms!5273
This commit is contained in:
Daniel Rodriguez 2022-11-22 12:29:37 +00:00
commit 833032763d
2 changed files with 2 additions and 2 deletions

View File

@ -800,7 +800,7 @@ function events_get_all(
}
}
if (isset($filter['severity']) === true && $filter['severity'] !== '') {
if (isset($filter['severity']) === true && $filter['severity'] !== '' && (int) $filter['severity'] > -1) {
if (is_array($filter['severity']) === true) {
if (in_array(-1, $filter['severity']) === false) {
$not_normal = array_search(EVENT_CRIT_NOT_NORMAL, $filter['severity']);

View File

@ -170,7 +170,7 @@ class AlertsFiredWidget extends Widget
$this->configurationRequired = false;
if (isset($this->values['groupId']) === false) {
$this->configurationRequired = true;
} else {
} else if ($this->values['groupId'] !== '0') {
$check_exist = \db_get_value(
'id_grupo',
'tgrupo',