We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents df254f0 + 5133c6a commit 5e0cb7cCopy full SHA for 5e0cb7c
ProcessMaker/Traits/TaskResourceIncludes.php
@@ -64,6 +64,10 @@ private function includeDraft()
64
// but drafts are disabled so we need to delete it now that
65
// it's been accessed.
66
$draft->delete();
67
+
68
+ // Return null to prevent the frontend from trying to load
69
+ // files from the deleted draft
70
+ return ['draft' => null];
71
}
72
73
return ['draft' => $draft];
0 commit comments