Skip to content

Fix #47463 Fatal error in showCertificateFor when score reporting date is used#11313

Open
dienifer-oc-group wants to merge 1 commit intoILIAS-eLearning:release_10from
oc-group:10_fix_showCertificateFor
Open

Fix #47463 Fatal error in showCertificateFor when score reporting date is used#11313
dienifer-oc-group wants to merge 1 commit intoILIAS-eLearning:release_10from
oc-group:10_fix_showCertificateFor

Conversation

@dienifer-oc-group
Copy link

This PR fixes a fatal error in:

components/ILIAS/Test/classes/class.ilObjTestAccess.php

Problem:
When score reporting is configured with "Date", the code incorrectly accesses an array as an object:

self::$settings_result_summaries_by_obj_id->getReportingDate()

Since self::$settings_result_summaries_by_obj_id is an array indexed by obj_id, this causes:

Call to a member function getReportingDate() on array

Fix:
The correct implementation is:

self::$settings_result_summaries_by_obj_id[$obj_id]->getReportingDate()

Testing:
The issue was reproduced in a clean environment (ILIAS 10.5) and resolved after applying this fix.

Related Mantis issue: #47463

@mjansenDatabay mjansenDatabay added bugfix php Pull requests that update Php code labels Mar 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bugfix php Pull requests that update Php code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants