Release 2.0.2 (#3856)
* allow to overwrite global spreadsheet styles * bump version * fix deprecations in vcard download * bump composer packages * added help page for all registered locales * fix menu id's, cleanup times route, fix configurable homepage redirect * format duration without leading zero in hours (unify javascript with php behavior) * fix active records in all screen sizes * improved responsiveness in XS * fixed invoice number for customer null fields * fix javascript respects multiple recent-activity dropdowns * show recent activities on small screens * fix user-profile layout column in XS * fix search is always marked as active
This commit is contained in:
@@ -50,11 +50,11 @@ final class MenuSubscriber implements EventSubscriberInterface
|
||||
$menu->addChild(new MenuItemModel('favorites', 'favorite_routes', null, [], 'bookmarked'));
|
||||
|
||||
// ------------------- timesheet menu -------------------
|
||||
$times = new MenuItemModel('timesheet', 'time_tracking', null, [], 'timesheet');
|
||||
$times = new MenuItemModel('times', 'time_tracking', null, [], 'timesheet');
|
||||
|
||||
if ($auth->isGranted('view_own_timesheet')) {
|
||||
$timesheets = new MenuItemModel('times', 'my_times', 'timesheet', [], 'timesheet');
|
||||
$timesheets->setChildRoutes(['times', 'timesheet_export', 'timesheet_edit', 'timesheet_create', 'timesheet_multi_update']);
|
||||
$timesheets = new MenuItemModel('timesheet', 'my_times', 'timesheet', [], 'timesheet');
|
||||
$timesheets->setChildRoutes(['timesheet_export', 'timesheet_edit', 'timesheet_create', 'timesheet_multi_update']);
|
||||
$times->addChild($timesheets);
|
||||
|
||||
if ($auth->isGranted('quick-entry')) {
|
||||
@@ -93,14 +93,15 @@ final class MenuSubscriber implements EventSubscriberInterface
|
||||
$menu->addChild($reporting);
|
||||
}
|
||||
|
||||
$invoice = new MenuItemModel('invoice', 'invoices', null, [], 'invoice');
|
||||
// ------------------- invoice menu -------------------
|
||||
$invoice = new MenuItemModel('invoices', 'invoices', null, [], 'invoice');
|
||||
|
||||
if ($auth->isGranted('create_invoice')) {
|
||||
$invoice->addChild(new MenuItemModel('invoice', 'invoice_form.title', 'invoice', [], 'invoice'));
|
||||
}
|
||||
|
||||
if ($auth->isGranted('view_invoice')) {
|
||||
$tmpMenu = new MenuItemModel('invoice-listing', 'all_invoices', 'admin_invoice_list', [], 'list');
|
||||
$tmpMenu = new MenuItemModel('invoice_listing', 'all_invoices', 'admin_invoice_list', [], 'list');
|
||||
$tmpMenu->setChildRoutes(['admin_invoice_edit']);
|
||||
$invoice->addChild($tmpMenu);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user