Skip to content

Commit

Permalink
Merge pull request #20 from revoltek-daniel/patch-1
Browse files Browse the repository at this point in the history
Fix Controller Definitions
  • Loading branch information
bigboss86 authored May 15, 2023
2 parents 9a49f02 + ef924f2 commit d5e1d5c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/Resources/config/routing/admin/report.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ odiseo_sylius_report_plugin_admin_report_show:
path: /reports/{id}
methods: [GET]
defaults:
_controller: odiseo_sylius_report_plugin.controller.report:renderAction
_controller: odiseo_sylius_report_plugin.controller.report::renderAction
_sylius:
template: '@OdiseoSyliusReportPlugin/show.html.twig'
requirements:
Expand All @@ -30,7 +30,7 @@ odiseo_sylius_report_plugin_admin_report_export:
path: /reports/{id}/export.{_format}
methods: [GET]
defaults:
_controller: odiseo_sylius_report_plugin.controller.report:exportAction
_controller: odiseo_sylius_report_plugin.controller.report::exportAction
_format: csv
requirements:
id: '\d+'
2 changes: 1 addition & 1 deletion src/Resources/views/show.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@

{% block show_results %}
<div id="report-results">
{{ render(controller('odiseo_sylius_report_plugin.controller.report:embedAction', {'report': report, 'configuration' : report.dataFetcherConfiguration})) }}
{{ render(controller('odiseo_sylius_report_plugin.controller.report::embedAction', {'report': report, 'configuration' : report.dataFetcherConfiguration})) }}
</div>
{% endblock %}

Expand Down

0 comments on commit d5e1d5c

Please sign in to comment.