Properly initialize Filter option.

svn: r9525
This commit is contained in:
Brian Matherly
2007-12-17 04:12:01 +00:00
parent c3471430b0
commit f5393d7d3a
3 changed files with 13 additions and 10 deletions

View File

@ -142,8 +142,11 @@ class Calendar(Report):
self.text1 = options_class.handler.options_dict['text1']
self.text2 = options_class.handler.options_dict['text2']
self.text3 = options_class.handler.options_dict['text3']
self.filter = options_class.handler.options_dict['filter']
self.filter_option = options_class.menu.get_option_by_name('filter')
filter_index = int(self.filter_option.get_value())
filters = self.filter_option.get_filters()
self.filter = filters[filter_index]
self.title = _("Calendar Report") #% name
def get_name(self, person, maiden_name = None):