From 56f091d357798eeaf68608c9097a4e2935208f2a Mon Sep 17 00:00:00 2001 From: alpeb Date: Sun, 22 Feb 2004 22:41:18 +0000 Subject: [PATCH] some php setting or something puts automatically a hidden input element with the session id at the beginning of every form. The javascript here used form.elements(0), which refered to a different element when this hidden thing appeared. So I changed that to form.element('name') to avoid this. --- phpgwapi/templates/default/accounts_popup.tpl | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/phpgwapi/templates/default/accounts_popup.tpl b/phpgwapi/templates/default/accounts_popup.tpl index cb424d0c42..1498366d0d 100644 --- a/phpgwapi/templates/default/accounts_popup.tpl +++ b/phpgwapi/templates/default/accounts_popup.tpl @@ -10,7 +10,7 @@ function ExchangeAccountSelect(thisform) { - NewEntry = new Option(thisform.elements[1].value,thisform.elements[0].value,false,true); + NewEntry = new Option(thisform.elements['accountdisplay'].value,thisform.elements['accountid'].value,false,true); userSelectBox.options[userSelectBox.length] = NewEntry; } @@ -71,8 +71,8 @@ {name_user_group}
- - + +
@@ -127,8 +127,8 @@ {firstname} {lastname}
- - + +