From 5af68014ecd925e80a79a0e3c61791a3290e88b4 Mon Sep 17 00:00:00 2001 From: = Date: Mon, 10 Aug 2020 17:07:53 -0500 Subject: [PATCH] Exercise: Fix issue limit of exercise itents - refs GH#3392 --- main/exercise/exercise.class.php | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) 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'] );