Skip to content

Commit

Permalink
37775: Table page question sometimes throws error when copying learni…
Browse files Browse the repository at this point in the history
…ng modules
  • Loading branch information
alex40724 committed Aug 16, 2023
1 parent ff5dd56 commit 0a0b646
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions Services/COPage/classes/class.ilPCQuestion.php
Original file line number Diff line number Diff line change
Expand Up @@ -213,11 +213,15 @@ public static function afterPageUpdate($a_page, DOMDocument $a_domdoc, $a_xml, $
}
}
foreach ($q_ids as $qid) {
$ilDB->manipulateF(
"INSERT INTO page_question (page_parent_type, page_id, page_lang, question_id)" .
" VALUES (%s,%s,%s,%s)",
array("text", "integer", "text", "integer"),
array($a_page->getParentType(), $a_page->getId(), $a_page->getLanguage(), $qid)
$ilDB->replace(
"page_question",
[
"page_parent_type" => ["text", $a_page->getParentType()],
"page_id" => ["integer", $a_page->getId()],
"page_lang" => ["text", $a_page->getLanguage()],
"question_id" => ["integer", $qid]
],
[]
);
}
}
Expand Down

0 comments on commit 0a0b646

Please sign in to comment.