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:
85f88b1
)
Fixes #270 - allow activity level warnings to be deleted.
author
Dan Marsden
<dan@danmarsden.com>
Fri, 1 Sep 2017 01:02:04 +0000
(13:02 +1200)
committer
Dan Marsden
<dan@danmarsden.com>
Fri, 1 Sep 2017 01:02:04 +0000
(13:02 +1200)
warnings.php
patch
|
blob
|
history
diff --git
a/warnings.php
b/warnings.php
index
a8462c5
..
74518a2
100644
(file)
--- a/
warnings.php
+++ b/
warnings.php
@@
-144,9
+144,9
@@
if ($action == 'delete' && !empty($notid)) {
} else {
require_sesskey();
$params = array('id' => $notid);
- if (!empty($
id
)) {
+ if (!empty($
att
)) {
// Add id/level to array.
- $params['idnumber'] = $id;
+ $params['idnumber'] = $
att->
id;
}
$DB->delete_records('attendance_warning', $params);
echo $OUTPUT->notification(get_string('warningdeleted', 'mod_attendance'), 'success');