X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=reports.php;h=958d88bc91eb27ce2608c7b54bcb73cc01fc9e0d;hb=8b38ee999b1ac4bf055c359080a3d82c2e272b1e;hp=fc77e09109e5bd609e4ab2f95faab58a9a5ffd25;hpb=14a6ab5e563acb66d090c6c291b5d51b1a31fae7;p=timetracker.git diff --git a/reports.php b/reports.php index fc77e091..958d88bc 100644 --- a/reports.php +++ b/reports.php @@ -89,6 +89,7 @@ if ($showClient) { } if ($showClient) { $form->addInput(array('type'=>'combobox', + 'onchange'=>'fillProjectDropdown(this.value);', 'name'=>'client', 'style'=>'width: 250px;', 'data'=>$client_list, @@ -192,8 +193,7 @@ if ($showApproved) { } // Add timesheet assignment selector. -$showTimesheetDropdown = $user->isPluginEnabled('ts') && - ($user->can('view_own_timesheets') || $user->can('view_timesheets') || $user->can('view_all_timesheets')); +$showTimesheetDropdown = $user->isPluginEnabled('ts'); if ($showTimesheetDropdown) { $form->addInput(array('type'=>'combobox', 'name'=>'timesheet', @@ -206,8 +206,7 @@ if ($showTimesheetDropdown) { 'empty'=>array(''=>$i18n->get('dropdown.all')) )); } -$showTimesheetCheckbox = $user->isPluginEnabled('ts') && - ($user->can('view_own_timesheets') || $user->can('view_timesheets') || $user->can('view_all_timesheets')); +$showTimesheetCheckbox = $user->isPluginEnabled('ts'); // Add user table. $showUsers = $user->can('view_reports') || $user->can('view_all_reports') || $user->isClient(); @@ -441,6 +440,7 @@ if ($request->isPost()) { } } // isPost +$smarty->assign('client_list', $client_list); $smarty->assign('show_client', $showClient); $smarty->assign('show_cf_1_dropdown', $showCustomFieldDropdown); $smarty->assign('show_cf_1_checkbox', $showCustomFieldCheckbox);