Skip to content

Commit

Permalink
merged r57989 from trunk: fixed mantis #0015440: Fragenpools lassen s…
Browse files Browse the repository at this point in the history
…ich nicht dem Test hinzufügen

git-svn-id: http://svn.ilias.de/svn/ilias/branches/Release_4_4_x_branch@57990 21b2c9ec-7c21-0410-8b45-9bfb8ed2bfc5
  • Loading branch information
Björn Heyser committed Feb 11, 2015
1 parent 5d84cb9 commit df5d102
Showing 1 changed file with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,17 @@ private function removeStagedQuestions()
while( $row = $this->db->fetchAssoc($res) )
{
$question = assQuestion::_instanciateQuestion($row['qst_fi']);
$question->delete($row['qst_fi']);

if( $question instanceof assQuestion )
{
$question->delete($row['qst_fi']);
}
else
{
$GLOBALS['ilLog']->writeWarning(
"could not delete staged random question (ref={$this->testOBJ->getRefId()} / qst={$row['qst_fi']})"
);
}
}

$query = "DELETE FROM tst_rnd_cpy WHERE tst_fi = %s";
Expand Down

0 comments on commit df5d102

Please sign in to comment.