Page 1 of 1

Undefined ObjectPermissions in opt/processmaker/workflow/engine/methods/cases/cases_SelfService.php

Posted: Thu Feb 02, 2023 10:51 pm
by gjosetm68
Error: Index Undefined ObjectPermissions in opt/processmaker/workflow/engine/method/cases/case_CatchSelfService.php in line 47.

Anybody find that error when open not assigned cases?

PM 3.5.7
Php 7.3

Re: Undefined ObjectPermissions in opt/processmaker/workflow/engine/methods/cases/cases_SelfService.php

Posted: Fri Feb 03, 2023 10:54 am
by JonathanMiller
I was getting a similar error in my instance of 3.5.7 Community. I rewrote the statement to check that the objectPermissions index existed before doing the check against it.

if (
isset($fieldsProcess['PRO_DYNAFORMS']['PROCESS']) &&
!empty($fieldsProcess['PRO_DYNAFORMS']['PROCESS']) &&
$userCanAccess['objectPermissions']['SUMMARY_FORM'] &&
$objProc->isBpmnProcess($fieldsCase['PRO_UID'])
)

Became

if (
isset($fieldsProcess['PRO_DYNAFORMS']['PROCESS']) &&
!empty($fieldsProcess['PRO_DYNAFORMS']['PROCESS']) &&
(isset($userCanAccess['objectPermissions']['SUMMARY_FORM']) && $userCanAccess['objectPermissions']['SUMMARY_FORM']) &&
$objProc->isBpmnProcess($fieldsCase['PRO_UID'])
)

Re: Undefined ObjectPermissions in opt/processmaker/workflow/engine/methods/cases/cases_SelfService.php

Posted: Tue Aug 08, 2023 6:24 am
by duskyrockall
I had the same problem and luckily you got a solution.