projects
/
moodle-mod_attendance.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b0b9842
)
Fix #93 $record needs an id.
author
Dan Marsden
<dan@danmarsden.com>
Fri, 5 Jun 2015 01:19:59 +0000
(13:19 +1200)
committer
Dan Marsden
<dan@danmarsden.com>
Fri, 5 Jun 2015 01:21:25 +0000
(13:21 +1200)
locallib.php
patch
|
blob
|
history
diff --git
a/locallib.php
b/locallib.php
index
3741bfe
..
8df8c25
100644
(file)
--- a/
locallib.php
+++ b/
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);