]> git.mjollnir.org Git - moodle.git/commitdiff
question category is not remembered correctly by import and export pages, fixing...
authorgustav_delius <gustav_delius>
Thu, 27 Apr 2006 06:42:10 +0000 (06:42 +0000)
committergustav_delius <gustav_delius>
Thu, 27 Apr 2006 06:42:10 +0000 (06:42 +0000)
question/export.php
question/import.php

index b75b56090b09e4757bc761ffc08ce30ba07db2e7..0a61c5027ba057d6b9305d8eed07501e74ccb5f9 100644 (file)
@@ -23,8 +23,8 @@
     
     if (!$categoryid) { // need to get category from modform
         $showcatmenu = true; // will ensure that user can choose category
-        if (isset($SESSION->modform)) {
-            $categoryid = $SESSION->modform->category;
+        if (isset($SESSION->questioncat)) {
+            $categoryid = $SESSION->questioncat;
         }
     }
 
index 4c6b1e8816c9d8ef8e7909c0760d4315451ac6fb..aa3cec8c351612347d91c1f8099915587aae0887 100644 (file)
@@ -53,8 +53,8 @@
 
     if (!$categoryid) { // try to get category from modform
         $showcatmenu = true; // will ensure that user can choose category
-        if (isset($SESSION->modform)) {
-            $categoryid = $SESSION->modform->category;
+        if (isset($SESSION->questioncat)) {
+            $categoryid = $SESSION->questioncat;
         }
     }