Skip to content

[FIX] 48775: Scoring tab: pass the technical identifier to Entity\Factory::standard() - #12559

Merged
thojou merged 1 commit into
ILIAS-eLearning:release_12from
srsolutionsag:fix/48775/12/scoring-entity-identifier
Dec 4, 2026
Merged

thojou merged 1 commit into
ILIAS-eLearning:release_12from
srsolutionsag:fix/48775/12/scoring-entity-identifier

Conversation

@chfsx

@chfsx chfsx commented Dec 3, 2026

Copy link
Copy Markdown
Member

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

Since 9b5ab49 ("[FEATURE] UI: make Entity viable IsPromptContent"), Entity\Factory::standard() expects a technical identifier as first argument. ConsecutiveScoringGUI::getUserRepresentation() still passed only the name and the avatar of the participant, so opening the "Scoring" tab of a test with a finished attempt threw an ArgumentCountError.

This passes the active id of the participant as technical identifier. It is the only call of Entity\Factory::standard() outside of the UI examples.

Tested on a local 12 installation: test with an essay question, one finished attempt, tab "Scoring" shows the participant and the answer again.

trunk has the same code and needs the same change.

While testing I noticed two things in the scoring view which are not part of this PR: the label -tst_highscore_score- is not translated, and "Test ID::" has a double colon.

…n ILIAS\UI\Implementation\Component\Entity\Factory::standard()"

Since 9b5ab49, Entity\Factory::standard() expects a technical
identifier as first argument. ConsecutiveScoringGUI still passed
only the name and the avatar of the participant, which threw an
ArgumentCountError when opening the "Scoring" tab. The active id
is passed as technical identifier now.

https://mantis.ilias.de/view.php?id=48775
@dsstrassner dsstrassner added bugfix php Pull requests that update Php code labels Dec 4, 2026
@dsstrassner

Copy link
Copy Markdown
Contributor

Thanks, @chfsx. Hi @kergomard I do not know, why we had more than one variable for 'Points' and why @nhaagen used this one, but you removed the gamification, and therefore it is gone. Maybe we use assessment#:#points for this occurrence in "components/ILIAS/Test/src/Scoring/Manual/class.ConsecutiveScoringGUI.php" 😀

@thojou

thojou commented Dec 4, 2026 •

Copy link
Copy Markdown
Contributor

Here is the follow-up for the label changes:

@thojou thojou left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @chfsx,

thanks for the change.
I'll go ahead and merge this now.

Here are the PR's for the other released versions:

Kind Regards,
@thojou

@thojou
thojou merged commit 0e7c621 into ILIAS-eLearning:release_12 Dec 4, 2026
6 checks passed
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