Permalink
Browse files

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

…ate.
  • Loading branch information...
1 parent 3388d2f commit 1179c92d0b17e09e34123fefc354c6368050784a @timhunt timhunt committed Aug 26, 2011
Showing with 7 additions and 7 deletions.
  1. +1 −1 mod/quiz/edit.php
  2. +1 −1 mod/quiz/editlib.php
  3. +1 −1 question/edit.php
  4. +4 −4 question/editlib.php
View
@@ -428,7 +428,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
@@ -1122,7 +1122,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('recurse', 'quiz'));
$this->display_category_form_checkbox('showhidden', $showhidden,
View
@@ -73,7 +73,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
@@ -1615,11 +1615,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 1179c92

Please sign in to comment.