bugfix : if the last field is an authority, the authority report generates a javascript error (going after array size)

This commit is contained in:
tipaul 2005-12-14 13:56:39 +00:00
parent 16aa7d2a8e
commit 87f381c43e
1 changed files with 1 additions and 1 deletions

View File

@ -9,7 +9,7 @@ var index_start = <!-- TMPL_VAR NAME="index" -->;
var whichfield = opener.opener.document.f.tag[index_start].value;
i=index_start
// go forward, until reaching the end of the field.
while (i<=opener.opener.document.f.field_value.length) {
while (i<opener.opener.document.f.field_value.length) {
if (opener.opener.document.f.tag[i].value == whichfield && opener.opener.document.f.subfield[i].value == '9') {
opener.opener.document.f.field_value[i].value = "<!-- TMPL_VAR NAME="authid" -->";
}