9362: Attempting to select an "Available item" for the Book Report gives an error
This commit is contained in:
parent
a63b85e281
commit
925e413683
@ -103,6 +103,8 @@ def _initialize_options(options, dbstate, uistate):
|
||||
if not hasattr(options, "menu"):
|
||||
return
|
||||
dbase = dbstate.get_database()
|
||||
if dbase.get_total() == 0:
|
||||
return
|
||||
menu = options.menu
|
||||
|
||||
for name in menu.get_all_option_names():
|
||||
|
Loading…
Reference in New Issue
Block a user