X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=plugins.php;h=1c0a076bb2a18bdfe2ca6f9c6b5360a500abe072;hb=48ba99d8257be57e5e43a03e80ab5d8c782b5295;hp=5880aa377eb396e6ff62c0feb5de6ef3375c2ec9;hpb=eac99bcd2c6aa2da61f72151dc35fd418fb6cb89;p=timetracker.git diff --git a/plugins.php b/plugins.php index 5880aa37..1c0a076b 100644 --- a/plugins.php +++ b/plugins.php @@ -54,6 +54,7 @@ if ($request->isPost()) { $cl_approval = $request->getParameter('approval'); $cl_timesheets = $request->getParameter('timesheets'); $cl_templates = $request->getParameter('templates'); + $cl_attachments = $request->getParameter('attachments'); } else { // Note: we get here in get, and also in post when group changes. // Which plugins do we have enabled in currently selected group? @@ -74,6 +75,7 @@ if ($request->isPost()) { $cl_approval = in_array('ap', $plugins); $cl_timesheets = in_array('ts', $plugins); $cl_templates = in_array('tp', $plugins); + $cl_attachments = in_array('at', $plugins); } $form = new Form('pluginsForm'); @@ -95,6 +97,7 @@ $form->addInput(array('type'=>'checkbox','name'=>'work_units','value'=>$cl_work_ $form->addInput(array('type'=>'checkbox','name'=>'approval','value'=>$cl_approval)); $form->addInput(array('type'=>'checkbox','name'=>'timesheets','value'=>$cl_timesheets)); $form->addInput(array('type'=>'checkbox','name'=>'templates','value'=>$cl_templates,'onchange'=>'handlePluginCheckboxes()')); +$form->addInput(array('type'=>'checkbox','name'=>'attachments','value'=>$cl_attachments,'onchange'=>'handlePluginCheckboxes()')); // Submit button. $form->addInput(array('type'=>'submit','name'=>'btn_save','value'=>$i18n->get('button.save'))); @@ -136,6 +139,8 @@ if ($request->isPost()) { $plugins .= ',ts'; if ($cl_templates) $plugins .= ',tp'; + if ($cl_attachments) + $plugins .= ',at'; // Recycle week view plugin options as they are not configured on this page. $existing_plugins = explode(',', $user->getPlugins());