mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 14:03:52 +01:00
MDL-60058 assign: Updating gradingduedate on drag/drop
This commit is contained in:
parent
a4f949442c
commit
028fa14436
@ -2054,6 +2054,15 @@ function mod_assign_core_calendar_event_timestart_updated(\calendar_event $event
|
||||
$instance->timemodified = time();
|
||||
$modified = true;
|
||||
}
|
||||
} else if ($event->eventtype == ASSIGN_EVENT_TYPE_GRADINGDUE) {
|
||||
$instance = $assign->get_instance();
|
||||
$newduedate = $event->timestart;
|
||||
|
||||
if ($newduedate != $instance->gradingduedate) {
|
||||
$instance->gradingduedate = $newduedate;
|
||||
$instance->timemodified = time();
|
||||
$modified = true;
|
||||
}
|
||||
}
|
||||
|
||||
if ($modified) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user