diff --git a/gramps/src/EditPerson.py b/gramps/src/EditPerson.py index 9f1af8c0c..0318c2a5e 100644 --- a/gramps/src/EditPerson.py +++ b/gramps/src/EditPerson.py @@ -275,9 +275,9 @@ class EditPerson: if Config.show_detail: if name.getNote() != "": attr = "N" - if name.getSourceRef(): + if name.getSourceRef().getBase(): attr = attr + "S" - self.name_list.append([name.getName()]) + self.name_list.append([name.getName(),attr]) self.name_list.set_row_data(self.name_index,name) self.name_index = self.name_index + 1 @@ -335,7 +335,7 @@ class EditPerson: if Config.show_detail: if attr.getNote() != "": detail = "N" - if attr.getSourceRef(): + if attr.getSourceRef().getBase(): detail = detail + "S" self.attr_list.append([attr.getType(),attr.getValue(),detail]) self.attr_list.set_row_data(self.attr_index,attr) @@ -368,7 +368,7 @@ class EditPerson: if Config.show_detail: if address.getNote() != "": detail = "N" - if address.getSourceRef(): + if address.getSourceRef().getBase(): detail = detail + "S" location = address.getCity() + " " + address.getState() + " " + \ address.getCountry() @@ -404,7 +404,7 @@ class EditPerson: if Config.show_detail: if event.getNote() != "": attr = "N" - if event.getSourceRef(): + if event.getSourceRef().getBase(): attr = attr + "S" self.event_list.append([event.getName(),event.getQuoteDate(),\ event.getPlace(),attr]) diff --git a/gramps/src/RelLib.py b/gramps/src/RelLib.py index d3f214731..573ea4009 100644 --- a/gramps/src/RelLib.py +++ b/gramps/src/RelLib.py @@ -462,7 +462,7 @@ class Event: self.date = Date() self.description = "" self.name = "" - self.source_ref = None + self.source_ref = SourceRef() self.note = Note() def set(self,name,date,place,description):