Skip to content

T&A 47188: Fixes html output in question answer statistics for sc, mc, kprim, vertical and horizontal ordering questions#11133

Open
matheuszych wants to merge 1 commit intoILIAS-eLearning:release_11from
matheuszych:ta/47188
Open

T&A 47188: Fixes html output in question answer statistics for sc, mc, kprim, vertical and horizontal ordering questions#11133
matheuszych wants to merge 1 commit intoILIAS-eLearning:release_11from
matheuszych:ta/47188

Conversation

@matheuszych
Copy link
Contributor

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

Aims to fix html output in question answer statistics for sc, mc, kprim, vertical and horizontal ordering questions.
@thojou

@matheuszych
Copy link
Contributor Author

Also an issue in ILIAS 10.

@dsstrassner
Copy link
Contributor

@kergomard please have also a look.

@dsstrassner dsstrassner added the php Pull requests that update Php code label Feb 27, 2026
Copy link
Contributor

@thojou thojou left a comment

Choose a reason for hiding this comment

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

Hey @matheuszych,

please always wrap key value pairs from the $answer array like done in:

components/ILIAS/TestQuestionPool/classes/class.assKprimChoiceGUI.php

$answers[] = [
    'answer' => $ans['answertext'],
    'frequency_true' => $ans['count_true'],
    'frequency_false' => $ans['count_false'],
    'sanitized' => true
];

@matheuszych
Copy link
Contributor Author

Hello @thojou ,
i adjusted the code.

Best regards
@matheuszych

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