Fixes issue 15262: Copy lines button incorrect message
authorJavier Etxarri <javier.echarri@openbravo.com>
Fri, 22 Jul 2011 12:54:32 +0200
changeset 13260 6405ffe7b3a6
parent 13259 e36538c24d11
child 13261 b96134a85d2d
Fixes issue 15262: Copy lines button incorrect message
src-db/database/sourcedata/AD_MESSAGE.xml
src/org/openbravo/base/secureApp/HttpSecureAppServlet.java
--- a/src-db/database/sourcedata/AD_MESSAGE.xml	Sun Jul 24 05:58:59 2011 +0200
+++ b/src-db/database/sourcedata/AD_MESSAGE.xml	Fri Jul 22 12:54:32 2011 +0200
@@ -16581,6 +16581,17 @@
 <!--69214D1297AF46B398BC55D7C7517EF4-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
 <!--69214D1297AF46B398BC55D7C7517EF4--></AD_MESSAGE>
 
+<!--6A62F2C09137428DA9CA0EB59B18F667--><AD_MESSAGE>
+<!--6A62F2C09137428DA9CA0EB59B18F667-->  <AD_MESSAGE_ID><![CDATA[6A62F2C09137428DA9CA0EB59B18F667]]></AD_MESSAGE_ID>
+<!--6A62F2C09137428DA9CA0EB59B18F667-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--6A62F2C09137428DA9CA0EB59B18F667-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--6A62F2C09137428DA9CA0EB59B18F667-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--6A62F2C09137428DA9CA0EB59B18F667-->  <VALUE><![CDATA[EmptyLines]]></VALUE>
+<!--6A62F2C09137428DA9CA0EB59B18F667-->  <MSGTEXT><![CDATA[You have not filled in all needed fields]]></MSGTEXT>
+<!--6A62F2C09137428DA9CA0EB59B18F667-->  <MSGTYPE><![CDATA[E]]></MSGTYPE>
+<!--6A62F2C09137428DA9CA0EB59B18F667-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
+<!--6A62F2C09137428DA9CA0EB59B18F667--></AD_MESSAGE>
+
 <!--6AFF7D5F89EF4A92980112A343CE5687--><AD_MESSAGE>
 <!--6AFF7D5F89EF4A92980112A343CE5687-->  <AD_MESSAGE_ID><![CDATA[6AFF7D5F89EF4A92980112A343CE5687]]></AD_MESSAGE_ID>
 <!--6AFF7D5F89EF4A92980112A343CE5687-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
--- a/src/org/openbravo/base/secureApp/HttpSecureAppServlet.java	Sun Jul 24 05:58:59 2011 +0200
+++ b/src/org/openbravo/base/secureApp/HttpSecureAppServlet.java	Fri Jul 22 12:54:32 2011 +0200
@@ -463,8 +463,12 @@
     } catch (final ServletException ex) {
       log4j.error("Error captured: ", ex);
       final VariablesSecureApp vars1 = new VariablesSecureApp(request, false);
-      final OBError myError = Utility.translateError(this, vars1, variables.getLanguage(),
-          ex.getMessage());
+      final OBError myError;
+      if (ex.getMessage().equals("Request IN parameter required: inpRownumId")) {
+        myError = Utility.translateError(this, vars1, variables.getLanguage(), "@EmptyLines@");
+      } else {
+        myError = Utility.translateError(this, vars1, variables.getLanguage(), ex.getMessage());
+      }
       if (strAjax != null && !strAjax.equals(""))
         bdErrorAjax(response, myError.getType(), myError.getTitle(), myError.getMessage());
       else if (strHidden != null && !strHidden.equals(""))