details:   https://code.openbravo.com/erp/devel/pi/rev/29c7f8e120e0
changeset: 13894:29c7f8e120e0
user:      Antonio Moreno <antonio.moreno <at> openbravo.com>
date:      Fri Sep 30 11:48:16 2011 +0200
summary:   Fixed issue 18655. If there are several messages, the last one will 
be shown.

diffstat:

 
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/ob-view-form.js
 |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (15 lines):

diff -r 06edd077bff6 -r 29c7f8e120e0 
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/ob-view-form.js
--- 
a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/ob-view-form.js
     Thu Sep 29 17:13:19 2011 +0200
+++ 
b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/ob-view-form.js
     Fri Sep 30 11:48:16 2011 +0200
@@ -668,9 +668,9 @@
     }
 
     // apparently sometimes an empty string is returned
-    if (calloutMessages && calloutMessages.length > 0 && 
calloutMessages[0].text !== '') {
+    if (calloutMessages && calloutMessages.length > 0 && 
calloutMessages[calloutMessages.length-1].text !== '') {
       // TODO: check as what type should call out messages be displayed
-      
this.view.messageBar.setMessage(isc.OBMessageBar[calloutMessages[0].severity], 
null, calloutMessages[0].text);
+      
this.view.messageBar.setMessage(isc.OBMessageBar[calloutMessages[calloutMessages.length-1].severity],
 null, calloutMessages[calloutMessages.length-1].text);
     }
     if (auxInputs) {
       for (prop in auxInputs) {

------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security
threats, fraudulent activity, and more. Splunk takes this data and makes
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2dcopy2
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to