Skip to content

Commit

Permalink
[TASK] add content object data to fluid variable
Browse files Browse the repository at this point in the history
  • Loading branch information
Volker Kemeter committed Jan 19, 2023
1 parent 774a7d6 commit f5f8bd1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Classes/Controller/NewsletterController.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ public function optinFormAction(?RegistrationRequest $receiver = null): Response
$newsletter[$groupId] = $item['label'];
}

$this->view->assign('data', $this->configurationManager->getContentObject()->data);
$this->view->assign('receiver', $receiver ?? new RegistrationRequest());
$this->view->assign('newsletter', $newsletter);

Expand Down Expand Up @@ -94,6 +95,7 @@ public function optoutFormAction(?RegistrationRequest $receiver = null): void
$newsletter[$groupId] = $item['label'];
}

$this->view->assign('data', $this->configurationManager->getContentObject()->data);
$this->view->assign('receiver', $receiver ?? new RegistrationRequest());
$this->view->assign('newsletter', $newsletter);
}
Expand Down

0 comments on commit f5f8bd1

Please sign in to comment.