Page 1 of 1

3.1.3 to 3.2 Upgrade - Notice: Undefined variable: aCase

Posted: Fri Jun 23, 2017 10:21 am
by itslenny
Since upgrading from 3.1.3 to 3.2, when I open a case I am not the ToDo person on, through Advanced Search for instance, I received the following message multiple (7) times.

Notice: Undefined variable: aCase in /opt/processmaker/workflow/engine/classes/model/ObjectPermission.php on line 235

Re: 3.1.3 to 3.2 Upgrade - Notice: Undefined variable: aCase

Posted: Fri Jun 23, 2017 6:02 pm
by amosbatto
Looking at the code, I see that $aCase is undefined. I have registered a bug report about this: http://bugs.processmaker.com/view.php?id=22950

You can stop the error messages by changing the source code in line 234 of /opt/processmaker/workflow/engine/classes/model/ObjectPermission.php from:
Code: Select all
                if ($row["OP_CASE_STATUS"] == "ALL" || $row["OP_CASE_STATUS"] == "" || $row["OP_CASE_STATUS"] == "0" ||
                    $row["OP_CASE_STATUS"] == $aCase["APP_STATUS"]
To:
Code: Select all
                if ($row["OP_CASE_STATUS"] == "ALL" || $row["OP_CASE_STATUS"] == "" || $row["OP_CASE_STATUS"] == "0" /*||
                    $row["OP_CASE_STATUS"] == $aCase["APP_STATUS"]*/