Bugfix if no event in Data Entry gramplet
svn: r11573
This commit is contained in:
parent
fe3d9d6b0e
commit
429d53eed8
@ -1462,6 +1462,7 @@ class DataEntryGramplet(Gramplet):
|
|||||||
# look for a match, and possible correction
|
# look for a match, and possible correction
|
||||||
for ref in ref_list:
|
for ref in ref_list:
|
||||||
event = self.dbstate.db.get_event_from_handle(ref.ref)
|
event = self.dbstate.db.get_event_from_handle(ref.ref)
|
||||||
|
if event is not None:
|
||||||
if int(event.get_type()) == type:
|
if int(event.get_type()) == type:
|
||||||
# Match! Let's update
|
# Match! Let's update
|
||||||
if date:
|
if date:
|
||||||
|
Loading…
Reference in New Issue
Block a user