From dc454ef428e35d84e07f78f32fe61835b6efd781 Mon Sep 17 00:00:00 2001 From: gustav_delius Date: Thu, 27 Apr 2006 06:42:10 +0000 Subject: [PATCH] question category is not remembered correctly by import and export pages, fixing bug 5348 --- question/export.php | 4 ++-- question/import.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/question/export.php b/question/export.php index b75b56090b..0a61c5027b 100644 --- a/question/export.php +++ b/question/export.php @@ -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; } } diff --git a/question/import.php b/question/import.php index 4c6b1e8816..aa3cec8c35 100644 --- a/question/import.php +++ b/question/import.php @@ -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; } } -- 2.39.5