Permalink
Browse files

MDL-17524 Deleting a calculated question delete datasetdefinitions sh…

…ared by other question

} missing...
  • Loading branch information...
1 parent 57db70a commit 636bbc872842015357e7739fc7dd78d28a465e86 pichetp committed Dec 4, 2008
Showing with 3 additions and 2 deletions.
  1. +3 −2 question/type/calculated/questiontype.php
@@ -636,8 +636,9 @@ function delete_question($questionid) {
'question_datasets',
"question != ?
AND datasetdefinition = ?;", array($questionid, $dataset->datasetdefinition))){
- $DB->delete_records('question_dataset_definitions', array('id' => $dataset->datasetdefinition));
- $DB->delete_records('question_dataset_items', array('definition' => $dataset->datasetdefinition));
+ $DB->delete_records('question_dataset_definitions', array('id' => $dataset->datasetdefinition));
+ $DB->delete_records('question_dataset_items', array('definition' => $dataset->datasetdefinition));
+ }
}
}
$DB->delete_records("question_datasets", array("question" => $questionid));

0 comments on commit 636bbc8

Please sign in to comment.