Commit 143c9a15 authored by Arnaud Fontaine's avatar Arnaud Fontaine

Invalid error message returned in CategoryMembershipArity Constraint.

parent a78ebaf4
......@@ -95,7 +95,7 @@ class CategoryMembershipArityConstraint(ConstraintMixin):
max_arity=max_arity)
# Generate an error message
if len(portal_type_list) == 0:
if len(portal_type_list) != 0:
if max_arity is None:
message_id = 'message_arity_with_portal_type_too_small'
else:
......
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