Browse Source

Fix #93 $record needs an id.

MOODLE_28_STABLE
Dan Marsden 10 years ago
parent
commit
a8e434040d
  1. 6
      locallib.php

6
locallib.php

@ -870,9 +870,9 @@ class attendance {
// Already recorded do not save.
return false;
}
else {
$DB->insert_record('attendance_log', $record, false);
}
$logid = $DB->insert_record('attendance_log', $record, false);
$record->id = $logid;
// Update the session to show that a register has been taken, or staff may overwrite records.
$session = $this->get_session_info($mformdata->sessid);

Loading…
Cancel
Save