Commit 5f9cccca authored by Sylvain Thénault's avatar Sylvain Thénault
Browse files

[wf] return None, not empty list

--HG--
branch : 3.5
parent 77622caef9bd
......@@ -23,7 +23,7 @@ class Workflow(AnyEntity):
@property
def initial(self):
"""return the initial state for this workflow"""
return self.initial_state and self.initial_state[0]
return self.initial_state and self.initial_state[0] or None
def is_default_workflow_of(self, etype):
"""return True if this workflow is the default workflow for the given
......
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