From 102fe3970629b16e40962504a2c0e41dc22b5102 Mon Sep 17 00:00:00 2001 From: Tim Hunt Date: Mon, 2 Dec 2013 17:42:59 +0000 Subject: [PATCH] MDL-43131 qbank: Fix show question text when first viewing. When you followed the link to the question bank, the checkbox for the "Show question text in the question list" option correctly reflected the user's preference, but what was actually shown in the question bank did not. --- question/editlib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/question/editlib.php b/question/editlib.php index d85c8647255..3f39887ba43 100644 --- a/question/editlib.php +++ b/question/editlib.php @@ -941,7 +941,7 @@ class question_bank_view { $columns = array('checkbox', 'qtype', 'questionname', 'editaction', 'previewaction', 'moveaction', 'deleteaction', 'creatorname', 'modifiername'); - if (optional_param('qbshowtext', false, PARAM_BOOL)) { + if (question_get_display_preference('qbshowtext', 0, PARAM_BOOL, new moodle_url(''))) { $columns[] = 'questiontext'; } return $columns;