Skip to content

Commit 036adf8

Browse files
Merge pull request #8584 from ProcessMaker/observation/FOUR-27719
Observation/FOUR-27719: Iframe displays “No iframe source provided for Manual Edit” on non–Smart Extract tasks
2 parents 76c0c55 + e5ad267 commit 036adf8

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

ProcessMaker/Http/Controllers/TaskController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ public function edit(ProcessRequestToken $task, string $preview = '')
140140
$element = $task->getDefinition(true);
141141
$screenFields = $screenVersion ? $screenVersion->screenFilteredFields() : [];
142142
$taskDraftsEnabled = TaskDraft::draftsEnabled();
143-
143+
$isSmartExtractTask = $task->element_name === 'Manual Document Review';
144144
// Remove screen parent to reduce the size of the response
145145
$screen = $task->screen;
146146
$screen['parent'] = null;
@@ -204,7 +204,7 @@ public function edit(ProcessRequestToken $task, string $preview = '')
204204
'screenFields' => $screenFields,
205205
'taskDraftsEnabled' => $taskDraftsEnabled,
206206
'userConfiguration' => $userConfiguration,
207-
'hitlEnabled' => config('smart-extract.hitl_enabled', false),
207+
'hitlEnabled' => config('smart-extract.hitl_enabled', false) && $isSmartExtractTask,
208208
]);
209209
}
210210
}

resources/views/tasks/edit.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ class="card border-0"
108108
@redirect="redirectToTask"
109109
@form-data-changed="handleFormDataChange" />
110110
@else
111-
@include('tasks.partials.hitl-iframe')
111+
@include('tasks.partials.hitl-iframe')
112112
@endunless
113113
@endcan
114114
<div v-if="taskHasComments">

0 commit comments

Comments
 (0)