From d189e5bca8ff35c4d21db2f7e6bbf5e3b92942e7 Mon Sep 17 00:00:00 2001 From: FinnStutzenstein Date: Thu, 3 May 2018 17:26:47 +0200 Subject: [PATCH] Fixed deleted comment fields --- openslides/motions/projector.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/openslides/motions/projector.py b/openslides/motions/projector.py index 8388fe0a6..bbc02575f 100644 --- a/openslides/motions/projector.py +++ b/openslides/motions/projector.py @@ -46,10 +46,11 @@ class MotionSlide(ProjectorElement): recommendation_field_id = None for id, field in fields.items(): - if field.get('forState', False): - state_field_id = id - if field.get('forRecommendation', False): - recommendation_field_id = id + if isinstance(field, dict): + if field.get('forState', False): + state_field_id = id + if field.get('forRecommendation', False): + recommendation_field_id = id # extract all mentioned motions from the state and recommendation motion_ids = set()