Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions ProcessMaker/Http/Controllers/Api/ProcessController.php
Original file line number Diff line number Diff line change
Expand Up @@ -513,6 +513,10 @@ public function update(Request $request, Process $process)
$process->manager_id = $request->input('manager_id', null);
}

if ($request->has('user_id')) {
$process->user_id = $request->input('user_id', null);
}

if ($request->has('reassignment_permissions')) {
$process->setProperty('reassignment_permissions', $request->get('reassignment_permissions'));
}
Expand Down
1 change: 1 addition & 0 deletions resources/lang/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -1593,6 +1593,7 @@
"Process Launchpad": "Process Launchpad",
"Process Manager not configured.": "Process Manager not configured.",
"Process Manager": "Process Manager",
"Process Owner": "Process Owner",
"Process Name": "Process Name",
"Process was successfully imported": "Process was successfully imported",
"Process_category_id": "Process Category ID",
Expand Down
1 change: 1 addition & 0 deletions resources/lang/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -1554,6 +1554,7 @@
"Process Launchpad": "Lanzador de Procesos",
"Process Manager not configured.": "El administrador de procesos no está configurado.",
"Process Manager": "Administrador de procesos",
"Process Owner": "Propietario del proceso",
"Process Name": "Nombre del Proceso",
"Process was successfully imported": "El proceso fue importado exitosamente",
"Process_category_id": "ID de Categoría de Proceso",
Expand Down
16 changes: 16 additions & 0 deletions resources/views/processes/edit.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,20 @@ class="invalid-feedback"
</div>
</b-col>
<b-col>
<label class="typo__label">{{__('Process Owner')}}</label>
<select-user
data-cy="process-owner"
v-model="owner"
:multiple="false"
:class="{'is-invalid': errors.user_id}"
/>
<div
v-if="errors.user_id"
class="invalid-feedback"
role="alert"
>
@{{errors.user_id[0]}}
</div>
</b-col>
</b-row>
</div>
Expand Down Expand Up @@ -536,6 +550,7 @@ class="custom-control-input">
activeUsersAndGroups: @json($list),
pause_timer_start_events: false,
manager: @json($process->manager),
owner: @json($process->user),
activeTab: "",
noElementsFoundMsg: 'Oops! No elements found. Consider changing the search query.',
reassignmentPermissions: {
Expand Down Expand Up @@ -651,6 +666,7 @@ class="custom-control-input">
this.formData.cancel_screen_id = this.formatValueScreen(this.screenCancel);
this.formData.request_detail_screen_id = this.formatValueScreen(this.screenRequestDetail);
this.formData.manager_id = this.formatValueScreen(this.manager);
this.formData.user_id = this.formatValueScreen(this.owner);
this.formData.reassignment_permissions = this.reassignmentPermissions;

ProcessMaker.apiClient.put('processes/' + that.formData.id, that.formData)
Expand Down
Loading