Permalink
Browse files

MDL-29294 qtype match restore problem on Oracle.

  • Loading branch information...
timhunt committed Dec 15, 2011
1 parent ea5534f commit 4d06e61a53fdd89d8340b4b6c44a3afdb48f0682
Showing with 3 additions and 3 deletions.
  1. +3 −3 question/type/match/questiontype.php
@@ -571,9 +571,9 @@ function restore_map($old_question_id,$new_question_id,$info,$restore) {
//mappings in backup_ids to use them later where restoring states (user level).
//Get the match_sub from DB (by question, questiontext and answertext)
- $db_match_sub = get_record ("question_match_sub","question",$new_question_id,
- "questiontext",$match_sub->questiontext,
- "answertext",$match_sub->answertext);
+ $db_match_sub = get_record('question_match_sub', 'question', $new_question_id,
+ sql_compare_text('questiontext', 255), $match_sub->questiontext,
+ 'answertext', $match_sub->answertext);
//Do some output
if (($i+1) % 50 == 0) {
if (!defined('RESTORE_SILENTLY')) {

0 comments on commit 4d06e61

Please sign in to comment.