diff --git a/src/plugins/webreport/NarrativeWeb.py b/src/plugins/webreport/NarrativeWeb.py index 5403c6856..d7f218d17 100644 --- a/src/plugins/webreport/NarrativeWeb.py +++ b/src/plugins/webreport/NarrativeWeb.py @@ -45,6 +45,7 @@ import gc import os import sys import re +import copy try: from hashlib import md5 except ImportError: @@ -1493,7 +1494,7 @@ class BasePage(object): for mediaref in photolist: photolist_handles[mediaref.get_reference_handle()] = mediaref photolist_ordered = [] - for photoref in object.get_media_list(): + for photoref in copy.copy(object.get_media_list()): if photoref.ref in photolist_handles: photo = photolist_handles[photoref.ref] photolist_ordered.append(photo)