Commit e72688a2 authored by Cédric Le Ninivin's avatar Cédric Le Ninivin Committed by Cédric Le Ninivin

erp5_upgrader: Severity should not be 0 when fixing

* this is inconsistent with Base_checkAlarmConsistency
parent e49c887d
...@@ -5,6 +5,6 @@ with context.defaultActivateParameterDict(activate_kw, placeless=True): ...@@ -5,6 +5,6 @@ with context.defaultActivateParameterDict(activate_kw, placeless=True):
if constraint_message_list: if constraint_message_list:
active_process = context.getPortalObject().restrictedTraverse(active_process) active_process = context.getPortalObject().restrictedTraverse(active_process)
active_process.postActiveResult( active_process.postActiveResult(
severity=0 if fixit else 1, severity=1,
summary="%s Consistency - At least one inconsistent object found" % ('Fix' if fixit else 'Check', ), summary="%s Consistency - At least one inconsistent object found" % ('Fix' if fixit else 'Check', ),
detail=[m.message for m in constraint_message_list]) detail=[m.message for m in constraint_message_list])
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment