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:
cb340f3
)
Fixed bug with printing attendance table for single user
author
Artem Andreev
<andreev.artem@gmail.com>
Sat, 16 Oct 2010 13:23:11 +0000
(17:23 +0400)
committer
Artem Andreev
<andreev.artem@gmail.com>
Sat, 16 Oct 2010 13:23:11 +0000
(17:23 +0400)
locallib.php
patch
|
blob
|
history
diff --git
a/locallib.php
b/locallib.php
index
c80b85f
..
9556c4a
100644
(file)
--- a/
locallib.php
+++ b/
locallib.php
@@
-308,7
+308,7
@@
function print_user_attendaces($user, $cm, $attforblock, $course = 0, $printing
$where = "ats.courseid={$course->id} AND al.studentid = {$user->id}";
}
- $stqry = "SELECT ats.
sessdate,ats.description,al.statusid,al.remarks
+ $stqry = "SELECT ats.
id,ats.sessdate,ats.description,al.statusid,al.remarks
FROM {$CFG->prefix}attendance_log al
JOIN {$CFG->prefix}attendance_sessions ats
ON al.sessionid = ats.id";