Commit c4347042 authored by Łukasz Nowak's avatar Łukasz Nowak

- validate rules conditionally, as right now workflow method is raising errors


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@27978 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 04858512
......@@ -558,7 +558,8 @@ class ERP5TypeTestCase(PortalTestCase):
rule_tool = self.getRuleTool()
for rule in rule_tool.contentValues(
portal_type=rule_tool.getPortalRuleTypeList()):
rule.validate()
if rule.getValidationState() != 'validated':
rule.validate()
def tic(self):
"""
......
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