Fixed the Problem with add alarm expresion of Alarm Definition

when select Function/Metric/Comparator/Threshold, console pring error:
angular.js:13920 ReferenceError: expression is not defined
    at AlarmExpressionController.touch (directives.js:120)
    at directives.js:226
and the expression is not added.
Reason: lack of "var" before "expression" in the directives.js 226 file.
Closes-Bug:#1669647

Change-Id: I4079c961c0da71c41bbb0a9338b2bcf127fd281a
This commit is contained in:
sven mark 2017-03-03 11:01:07 +08:00
parent 23cb0fd553
commit 6eba0e0df0
1 changed files with 1 additions and 1 deletions

View File

@ -117,7 +117,7 @@ function monAlarmExpressionsDirective(staticPath){
function touch() {
var hasInvalid = false;
expression = undefined;
var expression = undefined;
matchBy = [];
deterministic = true;