Fix potential crash in book report.

svn: r12839
This commit is contained in:
Brian Matherly 2009-07-28 03:17:44 +00:00
parent 55a98c40ce
commit d2ad12a90a

View File

@ -799,6 +799,7 @@ class BookReportSelector(ManagedWindow.ManagedWindow):
menu = item.option_class.menu
for optname in opt_dict:
menu_option = menu.get_option_by_name(optname)
if menu_option:
menu_option.set_value(opt_dict[optname])
_initialize_options(item.option_class, self.dbstate)