8096: Fix new event default type considering existing events with *default* role
This commit is contained in:
parent
e2e4d3c57a
commit
236b5e68fa
@ -214,8 +214,9 @@ class EventEmbedList(DbGUIElement, GroupEmbeddedList):
|
|||||||
|
|
||||||
event = None
|
event = None
|
||||||
for event_ref in self.get_data()[0]:
|
for event_ref in self.get_data()[0]:
|
||||||
event = self.dbstate.db.get_event_from_handle(event_ref.ref)
|
if event_ref.get_role() == self.default_role():
|
||||||
type_list.append(event.get_type())
|
event = self.dbstate.db.get_event_from_handle(event_ref.ref)
|
||||||
|
type_list.append(event.get_type())
|
||||||
|
|
||||||
_std_types = self.default_types()
|
_std_types = self.default_types()
|
||||||
for etype in _std_types:
|
for etype in _std_types:
|
||||||
|
Loading…
Reference in New Issue
Block a user