details:   https://code.openbravo.com/erp/devel/pi/rev/1b4cba742662
changeset: 28154:1b4cba742662
user:      Naroa Iriarte <naroa.iriarte <at> openbravo.com>
date:      Fri Dec 18 14:17:11 2015 +0100
summary:   fixed issue 31749: The warning message is not correct.

When a  warning message had to be shown when saving a record, it was not the 
proper message.
It showed "Saving failed" text appended to the original warning message.
That was not correct because it was possible to save the record.
To fix this the "setMessage" function of the "ob-messagebar.js" has been 
changed.
Now, it appends the "Saving failed" message only if the message type is an 
error.

diffstat:

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

diffs (12 lines):

diff -r 59e1a50dd801 -r 1b4cba742662 
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/main/ob-messagebar.js
--- 
a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/main/ob-messagebar.js
    Thu Dec 17 16:47:54 2015 +0000
+++ 
b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/main/ob-messagebar.js
    Fri Dec 18 14:17:11 2015 +0100
@@ -114,7 +114,7 @@
       text = newText + '</ul>';
     }
 
-    if ((form && form.isSaving) || (grid && grid.isSaving)) {
+    if (((form && form.isSaving) || (grid && grid.isSaving)) && type === 
isc.OBMessageBar.TYPE_ERROR) {
       text = OB.I18N.getLabel('OBUIAPP_ErrorSavingFailed') + ' ' + text;
     }
 

------------------------------------------------------------------------------
_______________________________________________
Openbravo-commits mailing list
Openbravo-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to