Bug 3079: sort event crashes with dbstate not passed to options

svn: r12750
This commit is contained in:
Gerald Britton 2009-07-01 14:43:27 +00:00
parent 2b49568b1f
commit b12dd97e71

View File

@ -86,10 +86,10 @@ class Tool(object):
if issubclass(options_class, MenuToolOptions):
# FIXME: pass in person_id
self.options = options_class(name, None, dbstate)
else: # must be some kind of class or we get a TypeError
self.options = options_class(name)
except TypeError:
self.options = options_class
else: # must be some kind of class or we get a TypeError
self.options = options_class(name)
self.options.load_previous_values()