Skip to content

Test 47625: Fix unit handling in advanced rating evaluation#11594

Open
lukas-heinrich wants to merge 1 commit into
ILIAS-eLearning:release_11from
lukas-heinrich:ta/11/47625
Open

Test 47625: Fix unit handling in advanced rating evaluation#11594
lukas-heinrich wants to merge 1 commit into
ILIAS-eLearning:release_11from
lukas-heinrich:ta/11/47625

Conversation

@lukas-heinrich
Copy link
Copy Markdown
Contributor

Hi everyone,

This PR relates to Mantis ticket 47625. The behaviour can only be reproduced if the ‘Advanced rating’ mode has been enabled for the formula question.

It seems to me that the issue has been addressed in commit c5c9537 by @matheuszych. However in 723a7c8, some operands were swapped, which, in my POV, leads to the problem described in the ticket. In the getReachedPoints method, answer_unit was compared with answer_unit to verify the result. Consequently, this always returned true, and the result was awarded the full marks for the correct unit.

As always, I look forward to your feedback and comments on these changes.

Best,
@lukas-heinrich

/cc @thojou

@dsstrassner dsstrassner added php Pull requests that update Php code authorities Pull requests that contain updates to the authorities of a component. labels May 28, 2026
@matthiaskunkel
Copy link
Copy Markdown
Member

Just a short question: why is this PR tagged with 'Authorities'?

@kergomard kergomard added bugfix and removed authorities Pull requests that contain updates to the authorities of a component. labels Jun 1, 2026
@kergomard
Copy link
Copy Markdown
Contributor

This is plain and simply wrong. I think we simply fat-fingered this.

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.

5 participants