do not fail getting workflow subdirectories for draft formdata (#2436)
This commit is contained in:
parent
9277880b87
commit
975aecb98e
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue