Skip to content

Commit

Permalink
Test: Fix setTextRating Demands Int
Browse files Browse the repository at this point in the history
  • Loading branch information
kergomard committed Jan 3, 2025
1 parent 2a2dab3 commit d1c927f
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions components/ILIAS/TestQuestionPool/classes/class.assTextSubset.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,17 +76,17 @@ public function loadFromDb(int $question_id): void
if ($result->numRows() == 1) {
$data = $this->db->fetchAssoc($result);
$this->setId($question_id);
$this->setObjId($data["obj_fi"]);
$this->setObjId($data['obj_fi']);
$this->setNrOfTries($data['nr_of_tries']);
$this->setTitle((string) $data["title"]);
$this->setComment((string) $data["description"]);
$this->setOriginalId($data["original_id"]);
$this->setAuthor($data["author"]);
$this->setPoints($data["points"]);
$this->setOwner($data["owner"]);
$this->setQuestion(ilRTE::_replaceMediaObjectImageSrc((string) $data["question_text"], 1));
$this->setCorrectAnswers((int) $data["correctanswers"]);
$this->setTextRating($data["textgap_rating"]);
$this->setTitle((string) $data['title']);
$this->setComment((string) $data['description']);
$this->setOriginalId($data['original_id']);
$this->setAuthor($data['author']);
$this->setPoints($data['points']);
$this->setOwner($data['owner']);
$this->setQuestion(ilRTE::_replaceMediaObjectImageSrc((string) $data['question_text'], 1));
$this->setCorrectAnswers((int) $data['correctanswers']);
$this->setTextRating($data['textgap_rating'] ?? assClozeGap::TEXTGAP_RATING_CASEINSENSITIVE);

try {
$this->setLifecycle(ilAssQuestionLifecycle::getInstance($data['lifecycle']));
Expand Down

0 comments on commit d1c927f

Please sign in to comment.