Skip to content

Commit

Permalink
Fix #351 Automatically calculate Final Grades on Assignment "Assigned…
Browse files Browse the repository at this point in the history
…"/"Due" date update
  • Loading branch information
francoisjacquet committed Sep 21, 2024
1 parent 23b04c6 commit 7e0e7fd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Changes in 11.8.5
- Fix regression since 10.0 allow User Field type & category edit in Fields.fnc.php
- Fix #350 Final Grade calculation when both "Weight Assignments" & "Weight Assignment Categories" checked in Grades.php, FinalGrades.fnc.php & ProgressReports.php
- Fix Final Grade calculation when "Weight Assignments" checked & excused in Grades.php, FinalGrades.fnc.php
- Fix #351 Automatically calculate Final Grades on Assignment "Assigned"/"Due" date update in Assignments.php

Changes in 11.8.4
-----------------
Expand Down
5 changes: 3 additions & 2 deletions modules/Grades/Assignments.php
Original file line number Diff line number Diff line change
Expand Up @@ -303,15 +303,16 @@

if ( $table === 'gradebook_assignments' )
{
if ( ( isset( $columns['POINTS'] ) || isset( $columns['WEIGHT'] ) )
if ( ( isset( $columns['POINTS'] ) || isset( $columns['WEIGHT'] )
|| isset( $columns['ASSIGNED_DATE'] ) || isset( $columns['DUE_DATE'] ) )
&& ! empty( $gradebook_config['AUTO_SAVE_FINAL_GRADES'] ) )
{
/**
* Automatically calculate & save Course Period's Final Grades using Gradebook Grades
*
* @since 11.8
*
* On Assignment insert or "Points"/"Weight" update
* On Assignment insert or "Points"/"Weight" or "Assigned"/"Due" date update
*/
FinalGradesAllMPSaveAJAX( UserCoursePeriod(), UserMP() );
}
Expand Down

0 comments on commit 7e0e7fd

Please sign in to comment.