Skip to content

T&A 48778: Keep Scoring Open For Deleted Users - #12571

Open
aaronbidzan wants to merge 1 commit into
ILIAS-eLearning:release_12from
aaronbidzan:ta/12/48778
Open

aaronbidzan wants to merge 1 commit into
ILIAS-eLearning:release_12from
aaronbidzan:ta/12/48778

Conversation

@aaronbidzan

Copy link
Copy Markdown
Contributor

See: https://mantis.ilias.de/view.php?id=48778

Opening the Scoring tab looked up the participant name with ilObjTest::getUserData(). A deleted account has no usr_data row, so that lookup throws an undefined array key. The name now comes from the participant User the repository already built. An empty login is shown through getDisplayName(), which yields user_deleted. That User exposes isAnonymous() for the imported-anonymous case.

ilUserAvatarResolver falls back to the anonymous account when ilObjUser cannot load the given id, so scoring does not call userExists() first. An exam id is still passed through as 0.

/cc @thojou

See: https://mantis.ilias.de/view.php?id=48778

Opening the Scoring tab looked up the participant name with
`ilObjTest::getUserData()`. A deleted account has no `usr_data` row, so
that lookup throws an undefined array key. The name now comes from the
participant `User` the repository already built. An empty login is shown
through `getDisplayName()`, which yields `user_deleted`. That `User`
exposes `isAnonymous()` for the imported-anonymous case.

`ilUserAvatarResolver` falls back to the anonymous account when `ilObjUser`
cannot load the given id, so scoring does not call `userExists()` first.
An exam id is still passed through as 0.
@aaronbidzan aaronbidzan changed the title Test: Keep Scoring Open For Deleted Users T&A 48778: Keep Scoring Open For Deleted Users Dec 4, 2026
@dsstrassner dsstrassner added bugfix php Pull requests that update Php code labels Dec 4, 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.

4 participants