-
Notifications
You must be signed in to change notification settings - Fork 341
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
T&A Bugfix #0042396: Fix Test Scoring Settings for Import/Export #8412
base: release_8
Are you sure you want to change the base?
Conversation
@@ -5254,6 +5254,7 @@ public function fromXML(ilQTIAssessment $assessment) | |||
} | |||
|
|||
$this->saveToDb(); | |||
$result_summary_settings = $result_summary_settings->withShowPassDetails($result_details_settings->getShowPassDetails()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
By default, the value of results_presentation
in the tst_tests
table is set to 3
if it is not specified. This results in showPassDetails()
always being true.
Subsequently, result_presentation
will be set to the corresponding import value (in my case, 0
). However, due to this line
ILIAS/Modules/Test/classes/ScoreReporting/class.ilObjTestScoreSettingsDatabaseRepository.php
Lines 126 to 128 in a54812f
$settings->getResultDetailsSettings() | |
->withShowPassDetails($settings->getResultSummarySettings()->getShowPassDetails()) | |
->toStorage(), |
, it will always be set to
1
. The reason for this is that PassDetails is true because it inherits the still-existing default value of 3 from the database.
@nhaagen, you seem to be the author of this feature. Please take a look at this and see if there is a better solution.
Best,
@fhelfer
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems to also be an issue for newer releases
https://mantis.ilias.de/view.php?id=42396
Similar to e051884