Permalink
Browse files

Merge branch 'MDL-29294_19' of git://github.com/timhunt/moodle into M…

…OODLE_19_STABLE
  • Loading branch information...
2 parents 593a3e8 + 4d06e61 commit 863b49bd9c5458cffb0adcda585b0be9dc718db8 @stronk7 stronk7 committed Jan 8, 2012
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 863b49b

Please sign in to comment.