Release 1.20.3 (#3340)
* fix edit timesheet link * fix drag & drop creates record for wrong user * fix search with multiple bindings * hide user switcher in calendar if there is only one user to choose * make quick entry responsive for mobile-only users * mark invoices as exported by default * fix serialization deprecation warning * fix duration calculation for fixed rate entries * updated composer packages * fix checkbox for horizontal forms * support pdfContext for PDF invoice templates
This commit is contained in:
@@ -60,6 +60,14 @@ class CalendarController extends AbstractController
|
||||
$profile = $values['user'];
|
||||
}
|
||||
}
|
||||
|
||||
$form = $form->createView();
|
||||
|
||||
// hide if the current user is the only available one
|
||||
if (\count($form->offsetGet('user')->vars['choices']) < 2) {
|
||||
$form = null;
|
||||
$profile = $this->getUser();
|
||||
}
|
||||
}
|
||||
|
||||
$mode = $this->service->getActiveMode();
|
||||
@@ -80,7 +88,7 @@ class CalendarController extends AbstractController
|
||||
}
|
||||
|
||||
return $this->render('calendar/user.html.twig', [
|
||||
'form' => ($form === null ? null : $form->createView()),
|
||||
'form' => $form,
|
||||
'user' => $profile,
|
||||
'config' => $config,
|
||||
'dragAndDrop' => $dragAndDrop,
|
||||
|
||||
Reference in New Issue
Block a user