From 176ff7f1cce5efc6183e391a94e3cdbe8cdc922f Mon Sep 17 00:00:00 2001 From: satikaj <117552851+satikaj@users.noreply.github.com> Date: Tue, 11 Jun 2024 21:43:45 +1000 Subject: [PATCH] fix: grant same number of extra attempts as scorm limit --- app/models/task.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/task.rb b/app/models/task.rb index a9a272585..6978814c6 100644 --- a/app/models/task.rb +++ b/app/models/task.rb @@ -341,7 +341,7 @@ def apply_for_scorm_extension(user, text) # Add a scorm extension to the task def grant_scorm_extension(by_user) - if update(scorm_extensions: self.scorm_extensions + 1) + if update(scorm_extensions: self.scorm_extensions + task_definition.scorm_attempt_limit) return true else return false