File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
fuel/app/classes/materia/score Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -96,7 +96,8 @@ public function validate_scores($timestamp=false)
96
96
// Check for attempt limit prior to submission, but only for actual plays (not previews)
97
97
if ($ this ->play_id != -1 )
98
98
{
99
- $ attempts_used = count (\Materia \Score_Manager::get_instance_score_history ($ this ->inst ->id , $ this ->play ->context_id ));
99
+ $ semester = Semester::get_current_semester ();
100
+ $ attempts_used = count (\Materia \Score_Manager::get_instance_score_history ($ this ->inst ->id , $ this ->play ->context_id , $ semester ));
100
101
if ($ this ->inst ->attempts != -1 && $ attempts_used >= $ this ->inst ->attempts )
101
102
{
102
103
throw new Score_Exception ('Attempt Limit Met ' , 'You have already met the attempt limit for this widget and cannot submit additional scores. ' );
You can’t perform that action at this time.
0 commit comments