Skip to content

Commit

Permalink
Merge pull request #73 from ilifau/dev54
Browse files Browse the repository at this point in the history
3.1.6
  • Loading branch information
Jesús Copado committed Sep 10, 2019
2 parents 72cc494 + d2f7596 commit a7ee449
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 deletions.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,4 +110,8 @@ This version includes support for PHP 7.2 in ILIAS 5.4 platform, during the proc

Version 3.1.5 (2019-08-26) for ILIAS 5.4
----------------------------------------
Some bugs in PHP 7.2 installations has been solved.
Some bugs in PHP 7.2 installations has been solved.

Version 3.1.6 (2019-09-10) for ILIAS 5.4
----------------------------------------
Solved some bugs related to Copy of PRTs
10 changes: 8 additions & 2 deletions classes/class.assStackQuestionGUI.php
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ public function deletionManagement()

if (is_a($paste_prt, 'assStackQuestionPRT'))
{
$paste_prt->setPRTId("");
$paste_prt->setPRTId(-1);
$paste_prt->setQuestionId($this->object->getId());
$paste_prt->setPRTName($generated_prt_name);
$paste_prt->save();
Expand All @@ -257,12 +257,18 @@ public function deletionManagement()
{
if (is_a($prt_node, 'assStackQuestionPRTNode'))
{
$prt_node->setNodeId("");
$prt_node->setNodeId(-1);
$prt_node->setQuestionId($this->object->getId());
$prt_node->setPRTName($generated_prt_name);
$prt_node->save();
}
}

//Solve #26077
//Include placeholder in specific feedback
$current_specific_feedback = $this->object->getOptions()->getSpecificFeedback();
$new_specific_feedback = "<p>" . $current_specific_feedback . "[[feedback:" . $generated_prt_name . "]]</p>";
$_POST["options_specific_feedback"] = $new_specific_feedback;
}
unset($_SESSION['copy_prt']);
ilUtil::sendInfo($lng->txt("qpl_qst_xqcas_prt_paste"), TRUE);
Expand Down
2 changes: 1 addition & 1 deletion plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

// code version; must be changed for all code changes

$version = "3.1.5";
$version = "3.1.6";

// ilias min and max version; must always reflect the versions that should
// run with the plugin
Expand Down

0 comments on commit a7ee449

Please sign in to comment.