Skip to content
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

Open
wants to merge 4 commits into
base: release_8
Choose a base branch
from

Conversation

fhelfer
Copy link
Contributor

@fhelfer fhelfer commented Nov 12, 2024

@chfsx chfsx added the bugfix label Nov 12, 2024
@@ -5254,6 +5254,7 @@ public function fromXML(ilQTIAssessment $assessment)
}

$this->saveToDb();
$result_summary_settings = $result_summary_settings->withShowPassDetails($result_details_settings->getShowPassDetails());
Copy link
Contributor Author

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

$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

Copy link
Contributor Author

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

@dsstrassner dsstrassner added the php Pull requests that update Php code label Nov 12, 2024
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