Skip to content

Commit

Permalink
regression fix: use correct param name
Browse files Browse the repository at this point in the history
  • Loading branch information
Lennart Hengstmengel committed Aug 9, 2024
1 parent 961842e commit b6f1ac6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Controller/ViewController.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
#[Route(path: '/auth/shared-project-timesheets')]
class ViewController extends AbstractController
{
#[Route(path: '/{sharedProject}/{shareKey}', name: 'view_shared_project_timesheets', methods: ['GET', 'POST'])]
#[Route(path: '/{project}/{shareKey}', name: 'view_shared_project_timesheets', methods: ['GET', 'POST'])]
public function indexAction(
Project $project,
string $shareKey,
Expand Down
2 changes: 1 addition & 1 deletion Resources/views/manage/index.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
{% elseif column == 'url' %}
{% if entry.shareKey %}
{% if entry.project %}
{% set p_url = url('view_shared_project_timesheets', {sharedProject: entry.project.id, shareKey: entry.shareKey}) %}
{% set p_url = url('view_shared_project_timesheets', {project: entry.project.id, shareKey: entry.shareKey}) %}
{% elseif entry.customer %}
{% set p_url = url('view_shared_project_timesheets_customer', {customer: entry.customer.id, shareKey: entry.shareKey}) %}
{% endif %}
Expand Down
4 changes: 2 additions & 2 deletions Resources/views/view/project.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,10 @@
{% if monthlyChartVisible %}
<div class="card-actions">
<div class="btn-group">
<a href="{{ url('view_shared_project_timesheets', {'id': project.id, 'shareKey': sharedProject.shareKey}) }}?year={{ year }}&month={{ month }}" class="btn btn-default btn-icon">
<a href="{{ url('view_shared_project_timesheets', {'project': project.id, 'shareKey': sharedProject.shareKey}) }}?year={{ year }}&month={{ month }}" class="btn btn-default btn-icon">
<i class="fas fa-table"></i>
</a>
<a href="{{ url('view_shared_project_timesheets', {'id': project.id, 'shareKey': sharedProject.shareKey}) }}?year={{ year }}&month={{ month }}&details=chart" class="btn btn-default btn-icon">
<a href="{{ url('view_shared_project_timesheets', {'project': project.id, 'shareKey': sharedProject.shareKey}) }}?year={{ year }}&month={{ month }}&details=chart" class="btn btn-default btn-icon">
<i class="fas fa-chart-bar"></i>
</a>
</div>
Expand Down

0 comments on commit b6f1ac6

Please sign in to comment.