Skip to content

Commit

Permalink
Fix ENM field GUI (line breaks)
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-e committed Jul 30, 2017
1 parent cf5d43c commit e45c88b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fields/field.email_newsletter_manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -972,13 +972,13 @@ protected function _addInfoIfApplicable($newsletter, &$gui)
if ($displayTemplate) {
$info .= sprintf(__('Email Template: %s'), is_object($newsletter->getTemplate())?$newsletter->getTemplate()->about['name']:'none');
}
if ($displayTemplate && $displayRecipientGroups) {
if ($displayTemplate && ($displaySender || $displayRecipientGroups)) {
$info .= '<br />';
}
if ($displaySender) {
$info .= sprintf(__('Sender: %s'), is_object($newsletter->getSender())?$newsletter->getSender()->getName():'none');
}
if ($displayRecipientGroups && $displaySender) {
if ($displaySender && $displayRecipientGroups) {
$info .= '<br />';
}
if ($displayRecipientGroups) {
Expand Down

0 comments on commit e45c88b

Please sign in to comment.