# HG changeset patch
# User Augusto Mauch <augusto.mauch@openbravo.com>
# Date 1365076278 -7200
# Node ID e166ce0fc3fe9dd7774581792b790bc174bf8ed6
# Parent  deaeb2838b8090f419abf0a6a855e7d24b3678ae
Fixes issue 23294: Parameter windows show messages with title and text

The function handleResponse was not showing the messages properly. At that point, the severity and the message text are available, and the message was being displayed like this:
messageBar.setMessage(message.severity, message.text). The first argument of the function is the severity, the second the message title and the third one (not used here), the message text. The way it was being called, the message text was shown in the message bar title.

To fix this problem, the function is now used like this:
messageBar.setMessage(message.severity, null, message.text); This way, the message title is retrieved using the severity, and the message text is shown in its place.

diff --git a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/process/ob-parameter-window-view.js b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/process/ob-parameter-window-view.js
--- a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/process/ob-parameter-window-view.js
+++ b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/process/ob-parameter-window-view.js
@@ -255,13 +255,13 @@
     if (message) {
       if (this.popup) {
         if (!retryExecution) {
-          this.buttonOwnerView.messageBar.setMessage(message.severity, message.text);
+          this.buttonOwnerView.messageBar.setMessage(message.severity, null, message.text);
         } else {
           // Popup has no message bar, showing the message in a warn popup
           isc.warn(message.text);
         }
       } else {
-        this.messageBar.setMessage(message.severity, message.text);
+        this.messageBar.setMessage(message.severity, null, message.text);
       }
     }
 
