From da40d09a43e045ddf7ddeb377c3056de5d84ee05 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 e76f0a4d024..0a8cd147533 100644 --- a/question/editlib.php +++ b/question/editlib.php @@ -932,7 +932,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;