diff --git a/mod/quiz/edit.php b/mod/quiz/edit.php index 15a9d8f0c5d..73a76400170 100644 --- a/mod/quiz/edit.php +++ b/mod/quiz/edit.php @@ -455,7 +455,7 @@ $questionbank->display('editq', $pagevars['qpage'], $pagevars['qperpage'], $pagevars['cat'], $pagevars['recurse'], $pagevars['showhidden'], - $pagevars['showquestiontext']); + $pagevars['qbshowtext']); echo ''; echo ''; echo ''; diff --git a/mod/quiz/editlib.php b/mod/quiz/editlib.php index 9f653c0b235..3643b83ad84 100644 --- a/mod/quiz/editlib.php +++ b/mod/quiz/editlib.php @@ -1187,7 +1187,7 @@ class quiz_question_bank_view extends question_bank_view { echo '
'; echo "
"; echo html_writer::input_hidden_params($this->baseurl, - array('recurse', 'showhidden', 'showquestiontext')); + array('recurse', 'showhidden', 'qbshowtext')); $this->display_category_form_checkbox('recurse', $recurse, get_string('includesubcategories', 'question')); $this->display_category_form_checkbox('showhidden', $showhidden, diff --git a/question/edit.php b/question/edit.php index 5359fe763c6..411cb3790ab 100644 --- a/question/edit.php +++ b/question/edit.php @@ -67,7 +67,7 @@ echo $OUTPUT->header(); echo '
'; $questionbank->display('questions', $pagevars['qpage'], $pagevars['qperpage'], $pagevars['cat'], $pagevars['recurse'], $pagevars['showhidden'], - $pagevars['showquestiontext']); + $pagevars['qbshowtext']); echo "
\n"; echo $OUTPUT->footer(); diff --git a/question/editlib.php b/question/editlib.php index 52faf9737d3..7b3722f9db3 100644 --- a/question/editlib.php +++ b/question/editlib.php @@ -1249,7 +1249,7 @@ class question_bank_view { protected function display_options($recurse, $showhidden, $showquestiontext) { echo ''; echo "
"; - echo html_writer::input_hidden_params($this->baseurl, array('recurse', 'showhidden', 'showquestiontext')); + echo html_writer::input_hidden_params($this->baseurl, array('recurse', 'showhidden', 'qbshowtext')); $this->display_category_form_checkbox('recurse', $recurse, get_string('includesubcategories', 'question')); $this->display_category_form_checkbox('showhidden', $showhidden, get_string('showhidden', 'question')); $this->display_category_form_checkbox('qbshowtext', $showquestiontext, get_string('showquestiontext', 'question')); @@ -1678,11 +1678,11 @@ function question_edit_setup($edittab, $baseurl, $requirecmid = false, $requirec $pagevars['showhidden'] = 0; } - if(($showquestiontext = optional_param('showquestiontext', -1, PARAM_BOOL)) != -1) { - $pagevars['showquestiontext'] = $showquestiontext; - $thispageurl->param('showquestiontext', $showquestiontext); + if(($showquestiontext = optional_param('qbshowtext', -1, PARAM_BOOL)) != -1) { + $pagevars['qbshowtext'] = $showquestiontext; + $thispageurl->param('qbshowtext', $showquestiontext); } else { - $pagevars['showquestiontext'] = 0; + $pagevars['qbshowtext'] = 0; } //category list page