X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=reports.php;h=958d88bc91eb27ce2608c7b54bcb73cc01fc9e0d;hb=cf018545bf61420782271261bdea7d2c3dd235a0;hp=5700025c74fc9f7818c2f167c7e86de00e5c886a;hpb=da31afab09f45aa188f4a6a8c939715a80216992;p=timetracker.git diff --git a/reports.php b/reports.php index 5700025c..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,9 +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') || ($user->can('view_client_timesheets'))); +$showTimesheetDropdown = $user->isPluginEnabled('ts'); if ($showTimesheetDropdown) { $form->addInput(array('type'=>'combobox', 'name'=>'timesheet', @@ -207,9 +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') || $user->can('view_client_timesheets')); +$showTimesheetCheckbox = $user->isPluginEnabled('ts'); // Add user table. $showUsers = $user->can('view_reports') || $user->can('view_all_reports') || $user->isClient(); @@ -443,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);