bug #2050068 [gui] "Check tables having overhead" selects wrong tables

This commit is contained in:
Marc Delisle
2008-08-16 13:04:44 +00:00
parent 59a33d0f99
commit a2d836fea4
2 changed files with 2 additions and 1 deletions

View File

@@ -273,7 +273,7 @@ foreach ($tables as $keyname => $each_table) {
. ' ' . $overhead_unit . '</a>' . "\n";
unset($formatted_overhead);
$overhead_check .=
"document.getElementById('checkbox_tbl_$i').checked = true;";
"document.getElementById('checkbox_tbl_" . ($i + 1) . "').checked = true;";
} else {
$overhead = '-';
}