From f414a0ec32626c3f0084bd020daba2b4553d244b Mon Sep 17 00:00:00 2001 From: Madhura Jayaratne Date: Thu, 24 Nov 2011 22:45:51 +0530 Subject: [PATCH] bug #3407235 [interface] Entering the key through a lookup window does not reset NULL --- ChangeLog | 1 + browse_foreigners.php | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/ChangeLog b/ChangeLog index 031c880f2..36a9e0aca 100644 --- a/ChangeLog +++ b/ChangeLog @@ -20,6 +20,7 @@ phpMyAdmin - ChangeLog - bug #3425156 [interface] Add column after drop - [interface] Avoid showing the password in phpinfo()'s output - bug #3441572 [GUI] 'newer version of phpMyAdmin' message not shown in IE8 +- bug #3407235 [interface] Entering the key through a lookup window does not reset NULL 3.4.7.1 (2011-11-10) - [security] Fixed possible local file inclusion in XML import diff --git a/browse_foreigners.php b/browse_foreigners.php index c8867af3f..e88c20f47 100644 --- a/browse_foreigners.php +++ b/browse_foreigners.php @@ -104,9 +104,11 @@ require_once './libraries/header_scripts.inc.php'; if (opener && opener.document && opener.document.insertForm) { var field = 'fields'; + var field_null = 'fields_null'; var element_name = field + '[multi_edit][][' + fieldmd5 + ']'; + var null_name = field_null + '[multi_edit][][' + fieldmd5 + ']'; var element_name = field + '[]'; @@ -120,6 +122,9 @@ require_once './libraries/header_scripts.inc.php'; if (opener.document.insertForm.elements[element_name]) { // Edit/Insert form opener.document.insertForm.elements[element_name].value = key; + if (opener.document.insertForm.elements[null_name]) { + opener.document.insertForm.elements[null_name].checked = false; + } self.close(); return false; } else if (opener.document.insertForm.elements[element_name_alt]) {