Reservations with url update
This commit is contained in:
@ -13,7 +13,7 @@ class Reservations
|
||||
{
|
||||
public function __invoke(ServerRequestInterface $request, ResponseInterface $response,
|
||||
Service\Proyecto $proyectoService, Repository\Region $regionRepository,
|
||||
View $view): ResponseInterface
|
||||
View $view, ?int $project_id = null): ResponseInterface
|
||||
{
|
||||
$projects = [];
|
||||
try {
|
||||
@ -23,6 +23,6 @@ class Reservations
|
||||
try {
|
||||
$regions = $regionRepository->fetchAll();
|
||||
} catch (EmptyResult) {}
|
||||
return $view->render($response, 'ventas.reservations', compact('projects', 'regions'));
|
||||
return $view->render($response, 'ventas.reservations', compact('projects', 'regions', 'project_id'));
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user