Skip to content

Commit

Permalink
Finalize configuration of newsletter settings
Browse files Browse the repository at this point in the history
  • Loading branch information
rootpd committed Nov 14, 2023
1 parent 1b82ff2 commit 13a06bf
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Components/MailSettings/MailSettings.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,14 @@ public function render(array $mailTypeCategoryCodes = null)
}

$this->template->categories = $categories;
$this->template->rtmParams = $this->presenter->rtmParams();
$this->template->prohibitedMode = $this->isProhibited();

if (empty($categories)) {
$this->template->showUnsubscribeAll = false;
$this->template->showSubscribeAll = false;
$this->template->mailTypesByCategories = [];
$this->template->mailTypeCategoryCodes = [];
$this->template->render();
return;
}
Expand Down

0 comments on commit 13a06bf

Please sign in to comment.