mirror of
https://github.com/moodle/moodle.git
synced 2025-06-04 23:25:35 +02:00
MDL-60300 Quiz: Offline update time not set correctly
This commit is contained in:
parent
d8e9a23c48
commit
078484f2e2
@ -2325,7 +2325,7 @@ class quiz_attempt {
|
||||
* This function should be used only when web services are being used.
|
||||
*
|
||||
* @param int $time time stamp
|
||||
* @return boolean false if the field is not updated becase web services aren't being used.
|
||||
* @return boolean false if the field is not updated because web services aren't being used.
|
||||
* @since Moodle 3.2
|
||||
*/
|
||||
public function set_offline_modified_time($time) {
|
||||
@ -2333,7 +2333,8 @@ class quiz_attempt {
|
||||
|
||||
// Update the timemodifiedoffline field only if web services are being used.
|
||||
if (WS_SERVER) {
|
||||
$attemptobj->attempt->timemodifiedoffline = $time;
|
||||
$this->attempt->timemodifiedoffline = $time;
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user