Related to issue 19689: It is not possible to change Role twice in a row
authorMartin Taal <martin.taal@openbravo.com>
Fri, 24 Feb 2012 09:26:20 +0100
changeset 15611 a06fc0bfe385
parent 15610 082557866f5c
child 15612 b3241413daf1
Related to issue 19689: It is not possible to change Role twice in a row
Added index to array returned from function call so that element from array is chosen
src/index.jsp
--- a/src/index.jsp	Fri Feb 24 01:01:26 2012 +0100
+++ b/src/index.jsp	Fri Feb 24 09:26:20 2012 +0100
@@ -21,7 +21,7 @@
  * The Initial Developer of the Original Code is Openbravo SLU 
  * All portions are Copyright (C) 2011-2012 Openbravo SLU
  * All Rights Reserved. 
- * Contributor(s):  ______________________________________.
+ * Contributor(s):  _____________________________________.
  ************************************************************************
  */
 
@@ -168,7 +168,7 @@
 
 function OBCreateScriptTag(src) {
   var script = document.createElement("script"),
-    body = document.body || document.getElementsByTagName("body");
+    body = document.body || document.getElementsByTagName("body")[0];
 
   script.type = 'text/javascript';
   script.src = src;