Questions and discussion about using ProcessMaker: user interface, running cases & functionality
#830404
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'])
)

Thanks. Very useful. https://www.solarpanelinstal[…]

Thanks for the link, amosbatto! I was searching fo[…]

Hello Please can you help me with the place where […]

Hi there, I have 3.5.7, 3.8.1 and 3.8.2 versi[…]