From f1ab2b3afcfe0646d76daba069749fc10979eb9b Mon Sep 17 00:00:00 2001 From: FinnStutzenstein Date: Wed, 9 May 2018 08:48:37 +0200 Subject: [PATCH] fixed #3708 --- openslides/core/views.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/openslides/core/views.py b/openslides/core/views.py index 439d8707a..d0b90cd03 100644 --- a/openslides/core/views.py +++ b/openslides/core/views.py @@ -289,10 +289,6 @@ class ProjectorViewSet(ModelViewSet): is not validated at this point! Should be done before. Returns the new serialized data. """ - # reset scroll level - if (projector.scroll != 0): - projector.scroll = 0 - projector.save() projector_config = {} for key, value in projector.config.items(): if value.get('stable'): @@ -303,6 +299,10 @@ class ProjectorViewSet(ModelViewSet): serializer = self.get_serializer(projector, data={'config': projector_config}, partial=False) serializer.is_valid(raise_exception=True) serializer.save() + # reset scroll level + if (projector.scroll != 0): + projector.scroll = 0 + projector.save() return serializer.data @detail_route(methods=['post'])