Skip to content

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

Closed
matheuszych wants to merge 1 commit into
ILIAS-eLearning:trunkfrom
matheuszych:ta/47888
Closed

matheuszych wants to merge 1 commit into
ILIAS-eLearning:trunkfrom
matheuszych:ta/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`.
@matheuszych

Copy link
Copy Markdown
Contributor Author

Needs to be cherry-picked into ILIAS 10 and ILIAS 11 as well.

@kergomard

Copy link
Copy Markdown
Contributor

Hi @matheuszych !

Thanks for the PR, but please always provide PRs to the lowest version needing the fix. Picking downwards is always very dangerous!

I close this for the time being.

Best,
@kergomard

@kergomard kergomard closed this Sep 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants