Commit 722bf02c authored by Cédric Le Ninivin's avatar Cédric Le Ninivin Committed by Titouan Soulard

erp5_upgrader: Severity should not be 0 when fixing

* this is inconsistent with Base_checkAlarmConsistency
parent 2df25beb
......@@ -5,6 +5,6 @@ with context.defaultActivateParameterDict(activate_kw, placeless=True):
if constraint_message_list:
active_process = context.getPortalObject().restrictedTraverse(active_process)
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', ),
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