do not fail getting workflow subdirectories for draft formdata (#2436)

This commit is contained in:
Frédéric Péters 2013-01-23 17:25:35 +01:00 committed by Thomas NOEL
parent 9277880b87
commit 975aecb98e
1 changed files with 2 additions and 0 deletions

View File

@ -217,6 +217,8 @@ class FormData(StorableObject):
def get_workflow_subdirectories(self):
wf_status = self.get_workflow_status()
if not wf_status: # draft
return []
return wf_status.get_subdirectories(self)
def handle_workflow_form(self, user, form):