MDL-46148 questions: Added missing allow_commit for transaction
authorDamyon Wiese <damyon@moodle.com>
Thu, 10 Jul 2014 03:35:47 +0000 (11:35 +0800)
committerDamyon Wiese <damyon@moodle.com>
Thu, 10 Jul 2014 03:35:47 +0000 (11:35 +0800)
question/format.php

index ad6a136..d34250a 100644 (file)
@@ -372,6 +372,7 @@ class qformat_default {
                         $this->category = $newcategory;
                     }
                 }
+                $transaction->allow_commit();
                 continue;
             }
             $question->context = $this->importcontext;