* src/plugins/NarrativeWeb.py:
* src/ReportBase/_ReportUtils.py: Fix 0000956: Event order within GRAMPS not replicated in web report svn: r8278
This commit is contained in:
@@ -1266,6 +1266,14 @@ def sanitize_person(db,person):
|
||||
# set complete flag
|
||||
new_person.set_marker(person.get_marker())
|
||||
|
||||
# copy event list
|
||||
for event_ref in person.get_event_ref_list():
|
||||
if event_ref and event_ref.get_privacy() == False:
|
||||
event = db.get_event_from_handle(event_ref.ref)
|
||||
if not event.get_privacy():
|
||||
new_person.add_event_ref(event_ref)
|
||||
|
||||
# Copy birth and death after event list to maintain the order.
|
||||
# copy birth event
|
||||
event_ref = person.get_birth_ref()
|
||||
if event_ref and event_ref.get_privacy() == False:
|
||||
@@ -1280,13 +1288,6 @@ def sanitize_person(db,person):
|
||||
if not event.get_privacy():
|
||||
new_person.set_death_ref(event_ref)
|
||||
|
||||
# copy event list
|
||||
for event_ref in person.get_event_ref_list():
|
||||
if event_ref and event_ref.get_privacy() == False:
|
||||
event = db.get_event_from_handle(event_ref.ref)
|
||||
if not event.get_privacy():
|
||||
new_person.add_event_ref(event_ref)
|
||||
|
||||
# copy address list
|
||||
for address in person.get_address_list():
|
||||
if not address.get_privacy():
|
||||
|
||||
Reference in New Issue
Block a user