diff --git a/ProcessMaker/Http/Controllers/RequestController.php b/ProcessMaker/Http/Controllers/RequestController.php index 8b0ffb0b8a..a4add102b4 100644 --- a/ProcessMaker/Http/Controllers/RequestController.php +++ b/ProcessMaker/Http/Controllers/RequestController.php @@ -89,8 +89,15 @@ public function show(ProcessRequest $request, Media $mediaItems) ->where('status', 'ACTIVE') ->orderBy('id')->first(); + // If the interstitial is enabled on the start event, then use it as the task + if ($active) { + $task = $allowInterstitial ? $startEvent : $active; + } else { + $task = $startEvent; + } + return redirect(route('tasks.edit', [ - 'task' => $active ? $active->getKey() : $startEvent->getKey() + 'task' => $task->getKey(), ])); } }