details:   https://code.openbravo.com/erp/devel/pi/rev/4441eebd812c
changeset: 17673:4441eebd812c
user:      David Baz Fayos <david.baz <at> openbravo.com>
date:      Tue Aug 14 22:12:54 2012 +0200
summary:   Fixed issue 19878 - Fixed issue 20403:
* Added message to database
* Changed window.console.error by an isc.warn

diffstat:

 
modules/org.openbravo.client.application/src-db/database/sourcedata/AD_MESSAGE.xml
                          |  12 ++++++++++
 
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/main/ob-standard-window.js
 |   9 +++++--
 2 files changed, 18 insertions(+), 3 deletions(-)

diffs (41 lines):

diff -r 7c9823f98821 -r 4441eebd812c 
modules/org.openbravo.client.application/src-db/database/sourcedata/AD_MESSAGE.xml
--- 
a/modules/org.openbravo.client.application/src-db/database/sourcedata/AD_MESSAGE.xml
        Tue Aug 14 21:01:35 2012 +0200
+++ 
b/modules/org.openbravo.client.application/src-db/database/sourcedata/AD_MESSAGE.xml
        Tue Aug 14 22:12:54 2012 +0200
@@ -531,6 +531,18 @@
 <!--8215A5BEBCF14B77996E55BF11C1912D-->  
<AD_MODULE_ID><![CDATA[9BA0836A3CD74EE4AB48753A47211BCC]]></AD_MODULE_ID>
 <!--8215A5BEBCF14B77996E55BF11C1912D--></AD_MESSAGE>
 
+<!--822D5C3E1A014738B4D39BF2BF568C7C--><AD_MESSAGE>
+<!--822D5C3E1A014738B4D39BF2BF568C7C-->  
<AD_MESSAGE_ID><![CDATA[822D5C3E1A014738B4D39BF2BF568C7C]]></AD_MESSAGE_ID>
+<!--822D5C3E1A014738B4D39BF2BF568C7C-->  
<AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--822D5C3E1A014738B4D39BF2BF568C7C-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--822D5C3E1A014738B4D39BF2BF568C7C-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--822D5C3E1A014738B4D39BF2BF568C7C-->  
<VALUE><![CDATA[OBUIAPP_ProcessClassNotFound]]></VALUE>
+<!--822D5C3E1A014738B4D39BF2BF568C7C-->  <MSGTEXT><![CDATA[Cannot find class 
for process in window %0<br/><br/>
+All modules in this window must be "in development".]]></MSGTEXT>
+<!--822D5C3E1A014738B4D39BF2BF568C7C-->  <MSGTYPE><![CDATA[E]]></MSGTYPE>
+<!--822D5C3E1A014738B4D39BF2BF568C7C-->  
<AD_MODULE_ID><![CDATA[9BA0836A3CD74EE4AB48753A47211BCC]]></AD_MODULE_ID>
+<!--822D5C3E1A014738B4D39BF2BF568C7C--></AD_MESSAGE>
+
 <!--8A04AE875EC045B48038ADBCD2F66D8A--><AD_MESSAGE>
 <!--8A04AE875EC045B48038ADBCD2F66D8A-->  
<AD_MESSAGE_ID><![CDATA[8A04AE875EC045B48038ADBCD2F66D8A]]></AD_MESSAGE_ID>
 <!--8A04AE875EC045B48038ADBCD2F66D8A-->  
<AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
diff -r 7c9823f98821 -r 4441eebd812c 
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/main/ob-standard-window.js
--- 
a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/main/ob-standard-window.js
       Tue Aug 14 21:01:35 2012 +0200
+++ 
b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/main/ob-standard-window.js
       Tue Aug 14 22:12:54 2012 +0200
@@ -151,9 +151,12 @@
           this.view.hide();
           this.processLayout.show();
         } else {
-          if (window.console) {
-            window.console.error('Cannot find class for process in window ' + 
params.windowId);
-          }
+          isc.warn(OB.I18N.getLabel('OBUIAPP_ProcessClassNotFound', 
[params.windowId]), function () {
+            return true;
+          }, {
+            icon: '[SKINIMG]Dialog/error.png',
+            title: OB.I18N.getLabel('OBUIAPP_Error')
+          });
         }
       }
     }

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to