Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge release 0.21.2 into 0.22.x #484

Merged
merged 4 commits into from
Jul 26, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Controller/RunController.php
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ public function compare(Request $request): void
'base_run' => $baseRun,
'head_run' => $headRun,
'candidates' => $candidates,
'url_params' => $request->get(),
'url_params' => $request->getQueryParams(),
'comparison' => $comparison,
'paging' => $paging,
'search' => [
Expand Down
5 changes: 5 additions & 0 deletions src/RequestProxy.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ public function __construct(Request $request)
$this->request = $request;
}

public function getQueryParams()
{
return $this->request->getQueryParams();
}

public function get(string $key, $default = null)
{
return $this->request->getQueryParam($key, $default);
Expand Down
2 changes: 1 addition & 1 deletion templates/runs/compare.twig
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
<div class="row-fluid row-spaced">
<h3>Other runs with {{ base_run.meta.simple_url }}</h3>
{% include 'runs/paginated-list.twig' with {runs: candidates.results, show_compare_link: true} %}
{{ helpers.pagination('run.compare', pagination, url_params) }}
{{ helpers.pagination('run.compare', paging, url_params) }}
</div>
{% endif %}

Expand Down