From 15062a2d0f113a39cb65e907986d268b1528cb49 Mon Sep 17 00:00:00 2001 From: Theophraste <5775-submitter@bugs.gramps-project.org> Date: Tue, 21 Jan 2014 21:50:57 +0200 Subject: [PATCH] 5775: ID reorder tool doesn't update citation IDs reapplied from gramps34 --- gramps/plugins/tool/reorderids.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/gramps/plugins/tool/reorderids.py b/gramps/plugins/tool/reorderids.py index 4ec040be0..6393d8c80 100644 --- a/gramps/plugins/tool/reorderids.py +++ b/gramps/plugins/tool/reorderids.py @@ -125,6 +125,16 @@ class ReorderIds(tool.BatchTool): db.source_map, db.commit_source, db.source_prefix) + if uistate: + self.progress.set_pass(_('Reordering Citation IDs'), + db.get_number_of_citations()) + self.reorder(gen.lib.Citation, + db.get_citation_from_gramps_id, + db.get_citation_from_handle, + db.find_next_citation_gramps_id, + db.citation_map, + db.commit_citation, + db.citation_prefix) if uistate: self.progress.set_pass(_('Reordering Place IDs'), db.get_number_of_places())