Skip to content
Snippets Groups Projects
Commit c66229bd authored by Arne Borchert's avatar Arne Borchert :fingers_crossed:
Browse files

Fehler bei Pagination

parent 6e4abe32
No related branches found
Tags v1.0.5
No related merge requests found
Pipeline #14029 passed
v0.0.0
Init
\ No newline at end of file
......@@ -54,15 +54,14 @@ class NewsListFetchItemsListenerForTags extends FetchItems
public function __invoke(array $newsArchives, ?bool $featuredOnly, int $limit, int $offset, Module $module)
{
$request = $this->requestStack->getCurrentRequest();
$page = $request->query->get('page_n'.$module->id);
$this->tags = $request->get('tag');
// remove tags from session
if ($this->tags === null && $page === null) {
if ($this->tags === null && $offset === 0) {
$this->session->remove('tags');
}
// save tags in session, becuase they are not submitted with pagination
if ($page === null) {
// save tags in session, because they are not submitted with pagination
if ($offset === 0) {
$this->session->set('tags', $this->tags);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment