diff options
2 files changed, 2 insertions, 2 deletions
diff --git a/sonar-server/src/main/webapp/javascripts/quality-gate/views/quality-gate-detail-condition-view.coffee b/sonar-server/src/main/webapp/javascripts/quality-gate/views/quality-gate-detail-condition-view.coffee index 50992789af0..75aaa8084d8 100644 --- a/sonar-server/src/main/webapp/javascripts/quality-gate/views/quality-gate-detail-condition-view.coffee +++ b/sonar-server/src/main/webapp/javascripts/quality-gate/views/quality-gate-detail-condition-view.coffee @@ -118,6 +118,6 @@ define [ periodText: period?.text unless @options.app.canEdit _.extend data, - warning: jQuery('<input>').data('type', @model.get('metric').type).val(@model.get('warning')).val() + warning: jQuery('<input>').data('type', @model.get('metric').type).val(@model.get('warning')).originalVal() error: jQuery('<input>').data('type', @model.get('metric').type).val(@model.get('error')).originalVal() data diff --git a/sonar-server/src/main/webapp/javascripts/quality-gate/views/quality-gate-detail-condition-view.js b/sonar-server/src/main/webapp/javascripts/quality-gate/views/quality-gate-detail-condition-view.js index fba38b1ca8f..81d4cec0d49 100644 --- a/sonar-server/src/main/webapp/javascripts/quality-gate/views/quality-gate-detail-condition-view.js +++ b/sonar-server/src/main/webapp/javascripts/quality-gate/views/quality-gate-detail-condition-view.js @@ -151,7 +151,7 @@ }); if (!this.options.app.canEdit) { _.extend(data, { - warning: jQuery('<input>').data('type', this.model.get('metric').type).val(this.model.get('warning')).val(), + warning: jQuery('<input>').data('type', this.model.get('metric').type).val(this.model.get('warning')).originalVal(), error: jQuery('<input>').data('type', this.model.get('metric').type).val(this.model.get('error')).originalVal() }); } |