Fixed motion projector if comment field is None. Fixed #2614.

This commit is contained in:
Norman Jäckel 2016-11-14 13:16:34 +01:00
parent e49411250a
commit 5a78f1c510
1 changed files with 8 additions and 7 deletions

View File

@ -47,6 +47,7 @@ class MotionAccessPermissions(BaseAccessPermissions):
for the projector. Removes several fields. for the projector. Removes several fields.
""" """
data = full_data.copy() data = full_data.copy()
if data.get('comments') is not None:
for i, field in enumerate(config['motions_comments']): for i, field in enumerate(config['motions_comments']):
if not field.get('public'): if not field.get('public'):
try: try: