Commit 818c4beb authored by Sylvain Thénault's avatar Sylvain Thénault
Browse files

[multi-sources] in ms config we don't have state_of (and probably others, but...

[multi-sources] in ms config we don't have state_of (and probably others, but that's the one used until now...)

--HG--
branch : 3.5
parent 45de36c7d47c
......@@ -303,7 +303,8 @@ class State(AnyEntity):
@property
def workflow(self):
return self.state_of[0]
# take care, may be missing in multi-sources configuration
return self.state_of and self.state_of[0]
def after_deletion_path(self):
"""return (path, parameters) which should be used as redirect
......
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