Merge pull request #3440 from lcubas/3392

Exercise: Fix issue limit of exercise itents - refs GH#3392
pull/3446/head
Yannick Warnier 5 years ago committed by GitHub
commit eb22b4c49a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      main/exercise/exercise.class.php

@ -2252,15 +2252,11 @@ class Exercise
$form->addGroup($group, null, get_lang('ShowPreviousButton'));
}
// Attempts
$attempt_option = range(0, 10);
$attempt_option[0] = get_lang('Infinite');
$form->addElement(
'select',
'number',
'exerciseAttempts',
get_lang('ExerciseAttempts'),
$attempt_option,
null,
['id' => 'exerciseAttempts']
);

Loading…
Cancel
Save