Skip to content

Commit eb22b4c

Browse files
authored
Merge pull request #3440 from lcubas/3392
Exercise: Fix issue limit of exercise itents - refs GH#3392
2 parents 6c4d1d4 + 5af6801 commit eb22b4c

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

main/exercise/exercise.class.php

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2252,15 +2252,11 @@ public function createForm($form, $type = 'full')
22522252
$form->addGroup($group, null, get_lang('ShowPreviousButton'));
22532253
}
22542254

2255-
// Attempts
2256-
$attempt_option = range(0, 10);
2257-
$attempt_option[0] = get_lang('Infinite');
2258-
22592255
$form->addElement(
2260-
'select',
2256+
'number',
22612257
'exerciseAttempts',
22622258
get_lang('ExerciseAttempts'),
2263-
$attempt_option,
2259+
null,
22642260
['id' => 'exerciseAttempts']
22652261
);
22662262

0 commit comments

Comments
 (0)