X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/b6546c4547eb47a06f80b6d0ffa474d3929602f9..e3cdaaf8e6b4e5433ec620396e562de1a5dcec10:/display_options.php diff --git a/display_options.php b/display_options.php index 222cc25d..ec4ddd95 100644 --- a/display_options.php +++ b/display_options.php @@ -37,17 +37,19 @@ if (!ttAccessAllowed('manage_basic_settings')) { } // End of access checks. -$config = new ttConfigHelper($user->getConfig()); +$config = $user->getConfigHelper(); if ($request->isPost()) { - $cl_time_note_on_separate_row = trim($request->getParameter('time_note_on_separate_row')); - $cl_report_note_on_separate_row = trim($request->getParameter('report_note_on_separate_row')); + $cl_time_note_on_separate_row = $request->getParameter('time_note_on_separate_row'); + $cl_report_note_on_separate_row = $request->getParameter('report_note_on_separate_row'); } else { $cl_time_note_on_separate_row = $config->getDefinedValue('time_note_on_separate_row'); $cl_report_note_on_separate_row = $config->getDefinedValue('report_note_on_separate_row'); } $form = new Form('displayOptionsForm'); + +// Time page. // $form->addInput(array('type'=>'checkbox','name'=>'time_client','value'=>$cl_time_client)); // $form->addInput(array('type'=>'checkbox','name'=>'time_cf_1','value'=>$cl_time_cf_1)); // $form->addInput(array('type'=>'checkbox','name'=>'time_project','value'=>$cl_time_project));