Skip to content

Commit 84841d1

Browse files
Fix CursorBot Observation
Check that the dashboardUrl is not empty before building the URL
1 parent 446c991 commit 84841d1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ProcessMaker/Http/Controllers/TaskController.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -191,17 +191,17 @@ public function edit(ProcessRequestToken $task, string $preview = '')
191191
]);
192192
$userConfiguration = (new UserConfigurationController())->index();
193193
$hitlEnabled = config('smart-extract.hitl_enabled', false) && $isSmartExtractTask;
194-
194+
195195
// Build the iframe source
196196
$iframeSrc = null;
197197
if ($hitlEnabled) {
198198
$dashboardUrl = config('smart-extract.dashboard_url');
199199
$requestData = $task->processRequest->data ?? [];
200-
200+
201201
$documentToken = $requestData['documentToken'] ?? null;
202202
$fileId = $requestData['fileId'] ?? null;
203-
204-
if ($documentToken && $fileId) {
203+
204+
if ($documentToken && $fileId && !empty($dashboardUrl)) {
205205
$queryParams = http_build_query([
206206
'documentToken' => $documentToken,
207207
'fileId' => $fileId,

0 commit comments

Comments
 (0)