From ec08a21bb005f13e9ad4e4f811456686cb1fa643 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Thu, 6 May 2010 14:31:44 +0000 Subject: [PATCH] Disable action checkbox for sum lines --- timesheet/inc/class.timesheet_ui.inc.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/timesheet/inc/class.timesheet_ui.inc.php b/timesheet/inc/class.timesheet_ui.inc.php index d990b870f0..5430aa0c20 100644 --- a/timesheet/inc/class.timesheet_ui.inc.php +++ b/timesheet/inc/class.timesheet_ui.inc.php @@ -665,12 +665,16 @@ class timesheet_ui extends timesheet_bo if ($row['ts_id'] <= 0) // sums { $readonlys["view[$row[ts_id]]"] = $readonlys["edit[$row[ts_id]]"] = $readonlys["delete[$row[ts_id]]"] = true; + $readonlys["checked[{$row[ts_id]}]"] = true; if ($query['sort'] == 'ASC') $row['ts_start'] -= 7200; // fix for DSL change switch($row['ts_id']) { case 0: // day-sum $row['ts_title'] = lang('Sum %1:',lang(date('l',$row['ts_start'])).' '.$GLOBALS['egw']->common->show_date($row['ts_start'], $GLOBALS['egw_info']['user']['preferences']['common']['dateformat'],false)); + + // For some reason day sum checkbox on the etemplate is checked[1] instead of checked[0] + $readonlys["checked[1]"] = true; break; case -1: // week-sum $row['ts_title'] = lang('Sum %1:',lang('week').' '.substr($row['ts_week'],4).'/'.substr($row['ts_week'],0,4));