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:
commit
833032763d
|
@ -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']);
|
||||
|
|
|
@ -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',
|
||||
|
|
Loading…
Reference in New Issue