From 3e2fe8b8575e15ecbb52110d9202d057af050231 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Fri, 10 Jun 2005 06:37:21 +0000 Subject: [PATCH] r263: Got the hack for checkboxes to work again; had to do with an instance of 'shortname'. See r242 for the original implementation. --- editreport.php | 2 +- showhistory.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/editreport.php b/editreport.php index 0e4d2cf..7f65316 100644 --- a/editreport.php +++ b/editreport.php @@ -159,7 +159,7 @@ if ($_POST['do'] == 'update') $checkbox = $db->query("SELECT * FROM " . TABLE_PREFIX . "bugfield WHERE type = 'input_checkbox'"); while ($box = $db->fetch_array($checkbox)) { - $boxlist[] = $box['shortname']; + $boxlist[] = 'field' . $box['fieldid']; } } diff --git a/showhistory.php b/showhistory.php index 2889e2e..a90cc03 100644 --- a/showhistory.php +++ b/showhistory.php @@ -74,7 +74,7 @@ foreach ($logs AS $dateline => $logitems) $messages = array(); foreach ($logitems AS $log) { - $hasvalues = ((empty($log['original']) AND (empty($log['changed']) AND $log['changed'] != 0)) ? false : true); + $hasvalues = ((empty($log['original']) AND (empty($log['changed']) AND $log['changed'] != '0')) ? false : true); if ($newlog = $fieldlist["$log[field]"]) { -- 2.22.5