Bug 3079: sort event crashes with dbstate not passed to options
svn: r12750
This commit is contained in:
parent
2b49568b1f
commit
b12dd97e71
@ -86,10 +86,10 @@ class Tool(object):
|
|||||||
if issubclass(options_class, MenuToolOptions):
|
if issubclass(options_class, MenuToolOptions):
|
||||||
# FIXME: pass in person_id
|
# FIXME: pass in person_id
|
||||||
self.options = options_class(name, None, dbstate)
|
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:
|
except TypeError:
|
||||||
self.options = options_class
|
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()
|
self.options.load_previous_values()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user