Skip to content

Commit

Permalink
Fixed empty epilog error. #162
Browse files Browse the repository at this point in the history
  • Loading branch information
Markus Hilbert committed Jun 24, 2020
1 parent 0a0afaf commit 72526dd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGES.rst
Expand Up @@ -7,6 +7,8 @@ Changelog
- Don't fail sending process when one email fails.
[thomasmassmann]

- Fixed empty epilog error. #162
[iham]

5.0.0b1 (2020-03-08)
--------------------
Expand Down
2 changes: 1 addition & 1 deletion src/Products/EasyNewsletter/content/newsletter_issue.py
Expand Up @@ -49,7 +49,7 @@ def get_default_epilogue(parent):
""" get epilogue from parent Newsletter
"""
epilogue_output = u""
if INewsletter.providedBy(parent) and parent.__parent__:
if INewsletter.providedBy(parent) and parent.__parent__ and parent.default_epilogue:
epilogue_output = parent.default_epilogue.raw
default_epilogue = textfield.RichTextValue(
raw=epilogue_output,
Expand Down

0 comments on commit 72526dd

Please sign in to comment.