Fix expr_eval of action['email'] if is None for issue838

This commit is contained in:
Cédric Krier committed 2009-03-03 22:37:00 +01:00
1 parent 6dddad2d65
commit 31ee74fc5c
1 file changed
+1 -1
+1 -1
View File
@@ -266,7 +266,7 @@ class ViewList(ParserView):
return False
email = {}
if 'email' in action:
email = self.screen.current_model.expr_eval(action['email'])
email = self.screen.current_model.expr_eval(action['email'] or '')
if not email:
email = {}
email['subject'] = action['name'].replace('_', '')