فهرست منبع

HPCC-10387 - Z.A.P does not include three parameters needed

Z.A.P does not include description, history, timing parameters which
displays the additional comments from users.

Signed-off by: Miguel Vazquez miguel.vazquez@lexisnexis.com
Miguel Vazquez 11 سال پیش
والد
کامیت
1731207bd1
1فایلهای تغییر یافته به همراه7 افزوده شده و 1 حذف شده
  1. 7 1
      esp/files/scripts/WUDetailsWidget.js

+ 7 - 1
esp/files/scripts/WUDetailsWidget.js

@@ -96,6 +96,9 @@ define([
         buildVersion: null,
         espIPAddress: null,
         thorIPAddress: null,
+        zapDescription: null,
+        warnHistory: null,
+        warnTimings: null,
 
         prevState: "",
 
@@ -112,6 +115,9 @@ define([
             this.playgroundWidget = registry.byId(this.id + "_Playground");
             this.xmlWidget = registry.byId(this.id + "_XML");
             this.publishForm = registry.byId(this.id + "PublishForm");
+            this.zapDescription = registry.byId(this.id + "ZapDescription");
+            this.warnHistory = registry.byId(this.id + "WarnHistory");
+            this.warnTimings = registry.byId(this.id + "WarnTimings");
 
             this.infoGridWidget = registry.byId(this.id + "InfoContainer");
             this.zapDialog = registry.byId(this.id + "ZapDialog");
@@ -210,7 +216,7 @@ define([
 
         onZapSubmit: function (event) {
             var frame = iframe.create("ZapDownload" + uniqueID++);
-            var url = ESPRequest.getBaseURL("WsWorkunits") + "/WUCreateZAPInfo?WUID=" + this.wu.Wuid + "&ESPIPAddress=" + this.espIPAddress + "&ThorIPAddress=" + this.thorIPAddress + "&BuildVersion=" + encodeURIComponent(this.buildVersion);
+            var url = ESPRequest.getBaseURL("WsWorkunits") + "/WUCreateZAPInfo?WUID=" + this.wu.Wuid + "&ESPIPAddress=" + this.espIPAddress + "&ThorIPAddress=" + this.thorIPAddress + "&BuildVersion=" + encodeURIComponent(this.buildVersion) + "&ProblemDescription=" + encodeURIComponent(this.zapDescription.value) + "&WhatChanged=" + encodeURIComponent(this.warnHistory.value) + "&WhereSlow=" + encodeURIComponent(this.warnTimings.value);
             iframe.setSrc(frame, url, true);
             this.zapDialog.hide();
         },