Don't set datas in return of wizard if there is no actions

This commit is contained in:
Cédric Krier committed 2008-03-28 15:32:36 +01:00
1 parent 37d4045eef
commit bb510e19b6
1 file changed
+2 -1
+2 -1
View File
@@ -178,7 +178,8 @@ class Wizard(object):
actions_res.update(action_res)
res = copy.copy(result_def)
res['datas'] = actions_res
if state_def.get('actions'):
res['datas'] = actions_res
lang = context.get('language', 'en_US')
if result_def['type'] == 'action':