Skip to content

TestQuestionPool 47888: Fix Formula Question Scoring Tab Exception - #12113

Open
matheuszych wants to merge 1 commit into
ILIAS-eLearning:release_10from
matheuszych:ta/10/47888
Open

matheuszych wants to merge 1 commit into
ILIAS-eLearning:release_10from
matheuszych:ta/10/47888

Conversation

@matheuszych

Copy link
Copy Markdown
Contributor

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

The scoring tab expected sign, value, and unit keys from assFormulaQuestionResult::getResultInfo(), but simple rating mode returned only points, which caused an exception when rendering result details. Ensured a consistent result array shape, tightened unit checks with instanceof, and simplified the rated result text output in assFormulaQuestion.

/cc @thojou

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

The scoring tab expected `sign`, `value`, and `unit` keys from
`assFormulaQuestionResult::getResultInfo()`, but simple rating mode
returned only `points`, which caused an exception when rendering result
details. Ensured a consistent result array shape, tightened unit checks
with `instanceof`, and simplified the rated result text output in
`assFormulaQuestion`.
@dsstrassner dsstrassner added bugfix php Pull requests that update Php code labels Sep 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.

3 participants