Fix HandleErrors related to LDS (#697)
* Fix ReferencedBySelection proxy for 'None' LDS Parents Fixes #10865 * Fix HandleError in Citations Gramplet for lds place missing
This commit is contained in:
parent
e0e19492cd
commit
b4e5bd9eb2
@ -427,9 +427,10 @@ class ReferencedBySelectionProxyDb(ProxyDbBase):
|
||||
def process_lds_ord(self, lds_ord):
|
||||
""" Find all of the primary objects referred to """
|
||||
fam_handle = lds_ord.get_family_handle()
|
||||
fam = self.db.get_family_from_handle(fam_handle)
|
||||
if fam:
|
||||
self.queue_object("Family", fam_handle)
|
||||
if fam_handle:
|
||||
fam = self.db.get_family_from_handle(fam_handle)
|
||||
if fam:
|
||||
self.queue_object("Family", fam_handle)
|
||||
|
||||
place_handle = lds_ord.get_place_handle()
|
||||
if place_handle:
|
||||
|
@ -249,9 +249,10 @@ class Citations(Gramplet, DbGUIElement):
|
||||
if self.check_citations(lds):
|
||||
return True
|
||||
place_handle = lds.get_place_handle()
|
||||
place = self.dbstate.db.get_place_from_handle(place_handle)
|
||||
if place and self.check_place_citations(place):
|
||||
return True
|
||||
if place_handle:
|
||||
place = self.dbstate.db.get_place_from_handle(place_handle)
|
||||
if place and self.check_place_citations(place):
|
||||
return True
|
||||
return False
|
||||
|
||||
def check_association_citations(self, obj):
|
||||
|
Loading…
x
Reference in New Issue
Block a user