Skip to content

Commit

Permalink
bugfix: ilObjOrgUnitTree::$temporary_table_name needs initialization
Browse files Browse the repository at this point in the history
when requesting "Profile and Privacy" from metabar menu, the following error is thrown:

Error thrown with message "Typed static property ilObjOrgUnitTree::$temporary_table_name must not be accessed before initialization"
Stacktrace:
ILIAS-eLearning#12 Error in /srv/www/xyz/Modules/OrgUnit/classes/class.ilObjOrgUnitTree.php:375
ILIAS-eLearning#11 ilObjOrgUnitTree:buildTempTableWithUsrAssignements in /srv/www/xyz/Modules/OrgUnit/classes/PathStorage/class.ilOrgUnitPathStorage.php:77
ILIAS-eLearning#10 ilOrgUnitPathStorage:getTextRepresentationOfUsersOrgUnits in /srv/www/xyz/Services/User/classes/class.ilObjUser.php:2586
ILIAS-eLearning#9 ilObjUser:lookupOrgUnitsRepresentation in /srv/www/xyz/Services/User/classes/class.ilObjUser.php:2591
ILIAS-eLearning#8 ilObjUser:getOrgUnitsRepresentation in /srv/www/xyz/Services/User/classes/class.ilUserProfile.php:785
ILIAS-eLearning#7 ilUserProfile:addStandardFieldsToForm in /srv/www/xyz/Services/User/Profile/classes/class.ilPersonalProfileGUI.php:632
ILIAS-eLearning#6 ilPersonalProfileGUI:initPersonalDataForm in /srv/www/xyz/Services/User/Profile/classes/class.ilPersonalProfileGUI.php:582
ILIAS-eLearning#5 ilPersonalProfileGUI:showPersonalData in /srv/www/xyz/Services/User/Profile/classes/class.ilPersonalProfileGUI.php:122
ILIAS-eLearning#4 ilPersonalProfileGUI:executeCommand in /srv/www/xyz/Services/UICore/classes/class.ilCtrl.php:178
#3 ilCtrl:forwardCommand in /srv/www/xyz/Services/Dashboard/classes/class.ilDashboardGUI.php:107
#2 ilDashboardGUI:executeCommand in /srv/www/xyz/Services/UICore/classes/class.ilCtrl.php:178
#1 ilCtrl:forwardCommand in /srv/www/xyz/Services/UICore/classes/class.ilCtrl.php:153
#0 ilCtrl:callBaseClass in /srv/www/xyz/ilias.php:24
  • Loading branch information
Uwe Tesche authored May 19, 2022
1 parent b3fbd67 commit af3d328
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Modules/OrgUnit/classes/class.ilObjOrgUnitTree.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
class ilObjOrgUnitTree
{
protected static ?string $temporary_table_name_getOrgUnitOfUser = null;
protected static string $temporary_table_name;
protected static ?string $temporary_table_name = null;
protected static ?ilObjOrgUnitTree $instance = null;
/** @var int[][] "employee" | "superior" => orgu_ref_id => role_id */
private array $roles;
Expand Down

0 comments on commit af3d328

Please sign in to comment.