diff --git a/browse_foreigners.php b/browse_foreigners.php index d9fd43a03..4aa582602 100644 --- a/browse_foreigners.php +++ b/browse_foreigners.php @@ -49,9 +49,9 @@ PMA_setFontSizes(); opener.document.insertForm.elements['field_' + field + '[]'].value = key; self.close(); return false; - } else if (opener.document.insertForm.elements['field_' + field + '[1]']) { + } else if (opener.document.insertForm.elements['field_' + field + '[]']) { // Search form - opener.document.insertForm.elements['field_' + field + '[1]'].value = key; + opener.document.insertForm.elements['field_' + field + '[]'].value = key; self.close(); return false; } @@ -87,6 +87,7 @@ require('./libraries/get_foreign.lib.php');