From 80383af61f77247071c05ae31fd637f5e0b29b18 Mon Sep 17 00:00:00 2001 From: Steffen Waterkamp Date: Mon, 22 Oct 2018 16:25:11 +0200 Subject: [PATCH] Parse condition_data_severity as severity --- gsa/src/web/pages/alerts/component.js | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/gsa/src/web/pages/alerts/component.js b/gsa/src/web/pages/alerts/component.js index f8cf0b49cb..37d7540212 100644 --- a/gsa/src/web/pages/alerts/component.js +++ b/gsa/src/web/pages/alerts/component.js @@ -30,7 +30,12 @@ import {selectSaveId} from 'gmp/utils/id'; import {first} from 'gmp/utils/array'; import {shorten} from 'gmp/utils/string'; -import {parseInt, parseYesNo, NO_VALUE} from 'gmp/parser'; +import { + parseInt, + parseSeverity, + parseYesNo, + NO_VALUE, +} from 'gmp/parser'; import PropTypes from 'web/utils/proptypes'; import withGmp from 'web/utils/withGmp'; @@ -304,8 +309,8 @@ class AlertComponent extends React.Component { condition_data_at_least_filter_id: condition_data_filter_id, condition_data_at_least_count: parseInt( value(condition.data.count, 1)), - condition_data_severity: value(condition.data.severity, - DEFAULT_SEVERITY), + condition_data_severity: parseSeverity(value(condition.data.severity, + DEFAULT_SEVERITY)), event: event_type, event_data_status: value(event.data.status, DEFAULT_EVENT_STATUS),