diff --git a/gramps/plugins/webreport/basepage.py b/gramps/plugins/webreport/basepage.py index bbae7d08365..2f9c2f02c9a 100644 --- a/gramps/plugins/webreport/basepage.py +++ b/gramps/plugins/webreport/basepage.py @@ -2430,7 +2430,7 @@ def disp_add_img_as_gallery(self, photolist, object_): if "image" in mime_type: self.max_img += 1 photolist_ordered = [] - for photoref in copy.copy(object_.get_media_list()): + for photoref in copy.copy(photolist): if photoref.ref in photolist_handles: photo = photolist_handles[photoref.ref] photolist_ordered.append(photo)