diff --git a/main/exercise/exercise.class.php b/main/exercise/exercise.class.php index dc5ebae1ab..ec46cf3000 100755 --- a/main/exercise/exercise.class.php +++ b/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'] );