Repository navigation
[FIX] 48775: Scoring tab: pass the technical identifier to Entity\Factory::standard() - #12559
Merged
thojou merged 1 commit intoDec 4, 2026
Conversation
…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
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" 😀 |
Contributor
|
Here is the follow-up for the label changes: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
https://mantis.ilias.de/view.php?id=48775
Since 9b5ab49 ("[FEATURE] UI: make
EntityviableIsPromptContent"),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 anArgumentCountError.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.