From 6a0182456b22d89e935ddd8d3a9e48a2302a880f Mon Sep 17 00:00:00 2001 From: romjerome Date: Sun, 29 Nov 2015 11:30:56 +0100 Subject: [PATCH] 9058: ReferencedBySelectionProxy can forget some referenced tags Tag records list forgot tags linked with some primary objects was on Gramps XML file format, not related to backup or tags on Person --- gramps/gen/proxy/referencedbyselection.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/gramps/gen/proxy/referencedbyselection.py b/gramps/gen/proxy/referencedbyselection.py index 23953efa2..609c34a11 100644 --- a/gramps/gen/proxy/referencedbyselection.py +++ b/gramps/gen/proxy/referencedbyselection.py @@ -226,6 +226,7 @@ class ReferencedBySelectionProxyDb(ProxyDbBase): self.process_media_ref_list(family) self.process_attributes(family) self.process_lds_ords(family) + self.process_tags(family) def process_event(self, event): """ @@ -246,6 +247,8 @@ class ReferencedBySelectionProxyDb(ProxyDbBase): if place: self.process_place(place) + self.process_tags(event) + def process_place(self, place): """ Follow the place object and find all of the primary objects @@ -264,6 +267,8 @@ class ReferencedBySelectionProxyDb(ProxyDbBase): if place: self.process_place(place) + self.process_tags(place) + def process_source(self, source): """ Follow the source object and find all of the primary objects @@ -281,6 +286,7 @@ class ReferencedBySelectionProxyDb(ProxyDbBase): self.process_repository(repo) self.process_media_ref_list(source) self.process_notes(source) + self.process_tags(source) def process_citation(self, citation): """ @@ -297,6 +303,7 @@ class ReferencedBySelectionProxyDb(ProxyDbBase): self.process_source(source) self.process_media_ref_list(citation) self.process_notes(citation) + self.process_tags(citation) def process_repository(self, repository): """ @@ -309,6 +316,7 @@ class ReferencedBySelectionProxyDb(ProxyDbBase): self.process_notes(repository) self.process_addresses(repository) self.process_urls(repository) + self.process_tags(repository) def process_media(self, media): """ @@ -321,6 +329,7 @@ class ReferencedBySelectionProxyDb(ProxyDbBase): self.process_citation_ref_list(media) self.process_attributes(media) self.process_notes(media) + self.process_tags(media) def process_note(self, note): """ @@ -338,6 +347,7 @@ class ReferencedBySelectionProxyDb(ProxyDbBase): obj_class = "MediaObject" if prop == "handle": self.queue_object(obj_class, value) + self.process_tags(note) def process_notes(self, original_obj): """ Find all of the primary objects referred to """