Get copy of current readers before modifying it instead of updating it "in place"
authorThierry Florac <thierry.florac@onf.fr>
Mon, 13 May 2019 15:10:46 +0200
changeset 1306 fe17a8ef8900
parent 1305 cf696ac30bb1
child 1307 8a0e2bc64193
Get copy of current readers before modifying it instead of updating it "in place"
src/pyams_content/features/review/__init__.py
--- a/src/pyams_content/features/review/__init__.py	Mon Apr 08 13:38:24 2019 +0200
+++ b/src/pyams_content/features/review/__init__.py	Mon May 13 15:10:46 2019 +0200
@@ -151,7 +151,7 @@
                                                      'sender': sender_name})
         # notify reviewers
         notifications = 0
-        readers = roles.readers
+        readers = roles.readers.copy()
         for reviewer in reviewers:
             if settings.enable_notifications and \
                     (mailer is not None) and \