fixed bug 32995: some 2.50 style selectors do not work on JBoss
authorAsier Lostalé <asier.lostale@openbravo.com>
Thu, 19 May 2016 11:10:41 +0200
changeset 29509 924f6aec18ba
parent 29508 4451654b2b92
child 29510 dbc2c8a0f505
fixed bug 32995: some 2.50 style selectors do not work on JBoss

JBoss AS 7.1.1 is stricter than Tomcat when parsing request parameters. Some
2.50 style selectors where sending as part of the request an unnamed parameter
(which, btw, was incorrect), this was not problematic for Tocmat but it is for
JBoss.

Fixed by removing unnamed parameters from the generated request in client side.
web/js/searchs.js
--- a/web/js/searchs.js	Mon May 16 15:57:17 2016 +0200
+++ b/web/js/searchs.js	Thu May 19 11:10:41 2016 +0200
@@ -11,7 +11,7 @@
  * under the License.
  * The Original Code is Openbravo ERP.
  * The Initial Developer of the Original Code is Openbravo SLU
- * All portions are Copyright (C) 2001-2010 Openbravo SLU
+ * All portions are Copyright (C) 2001-2016 Openbravo SLU
  * All Rights Reserved.
  * Contributor(s):  ______________________________________.
  ************************************************************************
@@ -489,6 +489,10 @@
     paramsData[count++] = new Array("clear","true");
   	var tags = frm.getElementsByTagName('INPUT');
   	for(var i=0; i < tags.length; i++) {
+  		if (!tags[i].name) {
+  		  continue;
+  		}
+
   		if(tags[i].name.toUpperCase() != "COMMAND" &&
   		   tags[i].name.toUpperCase() != "ISPOPUPCALL") {
   		   if(tags[i].type.toUpperCase() == "RADIO") {