[bugs] [Tickets] New ticket (67): _map is not defined.
bugs at bugs.horde.org
bugs at bugs.horde.org
Sun Apr 11 17:38:12 PDT 2004
DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.
-Ticket 67
-Queue: Hermes
-Created By:
-Summary:
_map is not defined.
Comment by dbondtmp1 at datanaut.com on Sun Apr 11 17:38:12 2004 (today):
Choosing Office->Time Tracking gives the following JScript error:
Error: _map is not defined
Source File: https://localhost/horde/hermes/
Line: 115
Here is HTML source piece:
<tr valign="top"> <td width="15%" align="right" class="item1"><span
class="form-error"><img src="/horde/graphics/required.gif" alt="*" title="*"
/></span> Client</td> <td class="item1"><select name="client"
id="id="client onchange="map('client', 'description');"> <option
value="108bd5a7f86519f59f4bdf04dc232ef3">Client 1</option>
<option value="e96690ff1c520b5ea841c5de466465ca">Client 2</option>
</select></td></tr>
<script language="JavaScript" type="text/javascript"><!--_map = new
Array("", "");
function map(sourceId, targetId)
{
var newval;
var source = document.getElementById(sourceId);
var element = document.getElementById(targetId);
if (element && map) {
if (_map[source.selectedIndex]) {
newval = _map[source.selectedIndex];
replace = true;
} else {
newval = '';
replace = false;
for (i = 0; i < _map.length; i++) {
if (element.value == _map[i]) {
replace = true;
break;
}
}
}
if (replace) {
element.value = newval;
}
}
}// --></script>
As you can see array _map is empty.
OS: RH Linux 9
PHP: php-4.2.2-0horde3
Horde: 4.0-CVS
--
http://bugs.horde.org/details.php?id=67
--
This mail was automatically generated by Tickets (http://bugs.horde.org/).
If you believe you have recieved this mail in error, please contact Horde
Development Team <dev at lists.horde.org>.
More information about the bugs
mailing list