Exercise: Add option not to delete a question-related picture in Question::delete() (added missing code from previous commit) - refs BT#19212

pull/4286/head
Yannick Warnier 4 years ago
parent dd320c5685
commit b050ffba54
  1. 4
      main/exercise/question.class.php

@ -1495,7 +1495,9 @@ abstract class Question
LOG_QUESTION_ID,
$this->iid
);
$this->removePicture();
if ($deletePicture) {
$this->removePicture();
}
} else {
// just removes the exercise from the list
$this->removeFromList($deleteFromEx, $courseId);

Loading…
Cancel
Save