Browse files

MDL-29141 question bank show question text checkbox does not match st…

…ate.
  • Loading branch information...
1 parent e4527c5 commit 362d5c1ed17d4fcc22e3a99a6b5bb0956324bddb @timhunt timhunt committed Aug 26, 2011
Showing with 8 additions and 8 deletions.
  1. +1 −1 mod/quiz/edit.php
  2. +1 −1 mod/quiz/editlib.php
  3. +1 −1 question/edit.php
  4. +5 −5 question/editlib.php
View
2 mod/quiz/edit.php
@@ -455,7 +455,7 @@ function module_specific_controls($totalnumber, $recurse, $category, $cmid, $cmo
$pagevars['qpage'],
$pagevars['qperpage'],
$pagevars['cat'], $pagevars['recurse'], $pagevars['showhidden'],
- $pagevars['showquestiontext']);
+ $pagevars['qbshowtext']);
echo '</div>';
echo '</div>';
echo '</div>';
View
2 mod/quiz/editlib.php
@@ -1187,7 +1187,7 @@ protected function display_options($recurse, $showhidden, $showquestiontext) {
echo '<form method="get" action="edit.php" id="displayoptions">';
echo "<fieldset class='invisiblefieldset'>";
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,
View
2 question/edit.php
@@ -67,7 +67,7 @@
echo '<div class="questionbankwindow boxwidthwide boxaligncenter">';
$questionbank->display('questions', $pagevars['qpage'], $pagevars['qperpage'],
$pagevars['cat'], $pagevars['recurse'], $pagevars['showhidden'],
- $pagevars['showquestiontext']);
+ $pagevars['qbshowtext']);
echo "</div>\n";
echo $OUTPUT->footer();
View
10 question/editlib.php
@@ -1249,7 +1249,7 @@ protected function display_category_form($contexts, $pageurl, $current) {
protected function display_options($recurse, $showhidden, $showquestiontext) {
echo '<form method="get" action="edit.php" id="displayoptions">';
echo "<fieldset class='invisiblefieldset'>";
- 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

0 comments on commit 362d5c1

Please sign in to comment.