From 302c517763b91fe6ba83bbb14d8d05f474de24b0 Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Wed, 29 Apr 2009 17:26:27 +0000 Subject: [PATCH] bug #2780356 [calendar] Null checkbox not unchecked when date is chosen --- ChangeLog | 1 + js/tbl_change.js | 11 +++++++++-- tbl_change.php | 4 +++- tbl_select.php | 2 +- 4 files changed, 14 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 1f9f79670d..a07de025f4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -62,6 +62,7 @@ $HeadURL: https://phpmyadmin.svn.sourceforge.net/svnroot/phpmyadmin/trunk/phpMyA - patch #2739001 [export] XML does not allow spaces in element names, thanks to Derek Schaefer - drummingds1 - bug #2780722 [import] Incorrect maximum file size +- bug #2780356 [calendar] Null checkbox not unchecked when date is chosen 3.1.4.0 (2009-04-25) + patch #1808339 [doc] Apache SSLOptions and StdEnvVars FAQ, diff --git a/js/tbl_change.js b/js/tbl_change.js index cc6338999b..c7bee73e84 100644 --- a/js/tbl_change.js +++ b/js/tbl_change.js @@ -90,13 +90,17 @@ var clock_set = 0; * * @param string calendar.php parameters * @param string form name - * @param string field name + * @param string id of field name * @param string edit type - date/timestamp + * @param string id of the corresponding checkbox for NULL */ -function openCalendar(params, form, field, type) { +function openCalendar(params, form, field, type, fieldNull) { window.open("./calendar.php?" + params, "calendar", "width=400,height=200,status=yes"); dateField = eval("document." + form + "." + field); dateType = type; + if (fieldNull != '') { + dateFieldNull = eval("document." + form + "." + fieldNull); + } } /** @@ -345,5 +349,8 @@ function returnDate(d) { } window.opener.dateField.value = txt; + if (typeof(window.opener.dateFieldNull) != 'undefined') { + window.opener.dateFieldNull.checked = false; + } window.close(); } diff --git a/tbl_change.php b/tbl_change.php index cfb521d2fe..ee36f113df 100644 --- a/tbl_change.php +++ b/tbl_change.php @@ -1051,11 +1051,13 @@ foreach ($rows as $row_id => $vrow) {