bug #3138572 "Continue insertion" problems

This commit is contained in:
Marc Delisle
2010-12-16 11:37:24 -05:00
parent 62fd44d51e
commit 4a71a1e5f1
3 changed files with 15 additions and 20 deletions

View File

@@ -98,12 +98,12 @@ if (is_array($foreignData['disp_row'])) {
<script type="text/javascript">
//<![CDATA[
self.focus();
function formupdate(field, key) {
function formupdate(fieldmd5, key) {
if (opener && opener.document && opener.document.insertForm) {
var field = 'field_' + field;
var field = 'fields';
<?php if (isset($pk)) { ?>
var element_name = field + '[multi_edit][<?php echo htmlspecialchars($pk); ?>][]';
var element_name = field + '[multi_edit][<?php echo htmlspecialchars($pk); ?>][' + fieldmd5 + ']';
<?php } else { ?>
var element_name = field + '[]';
<?php } ?>