Skip to content

Commit

Permalink
MDL-29294 qtype match restore problem on Oracle.
Browse files Browse the repository at this point in the history
  • Loading branch information
timhunt committed Dec 28, 2011
1 parent ea5534f commit 4d06e61
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions question/type/match/questiontype.php
Expand Up @@ -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')) {
Expand Down

0 comments on commit 4d06e61

Please sign in to comment.