Skip to content

Commit

Permalink
No submit button in readonly mode
Browse files Browse the repository at this point in the history
  • Loading branch information
gustav_delius committed Feb 21, 2006
1 parent 3fc63cb commit dcfa8b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mod/quiz/questiontypes/questiontype.php
Original file line number Diff line number Diff line change
Expand Up @@ -651,7 +651,7 @@ function print_question_submit_buttons(&$question, &$state, $cmoptions, $options
types. It prints a mark button in the case where individual marking is
allowed. */

if($cmoptions->optionflags & QUIZ_ADAPTIVE) {
if (($cmoptions->optionflags & QUIZ_ADAPTIVE) and !$options->readonly) {
echo '<input type="submit" name="';
echo $question->name_prefix;
echo 'mark" value="';
Expand Down

0 comments on commit dcfa8b2

Please sign in to comment.