X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=display_options.php;h=ec4ddd95ab825f607f3984dad42eb337fd9eb474;hb=HEAD;hp=222cc25da38f7cb9ca1b1f987514c29474851abd;hpb=b6546c4547eb47a06f80b6d0ffa474d3929602f9;p=timetracker.git 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));