From cc375a22b95b2e0f927a21ffd97c06f2276d8c14 Mon Sep 17 00:00:00 2001 From: Adrian Greeve Date: Tue, 28 Oct 2014 10:20:37 +0800 Subject: [PATCH] MDL-47697 mod_data: Fix group id change when editing. When a teacher edits an entry in the database module it would change the group ID to the one that the teacher currently had selected. Thanks to Steve Bond for providing a patch. --- mod/data/edit.php | 1 - 1 file changed, 1 deletion(-) diff --git a/mod/data/edit.php b/mod/data/edit.php index 7785a159c1e..57ceb5a98f7 100644 --- a/mod/data/edit.php +++ b/mod/data/edit.php @@ -168,7 +168,6 @@ if ($datarecord = data_submitted() and confirm_sesskey()) { $record->approved = 0; } - $record->groupid = $currentgroup; $record->timemodified = time(); $DB->update_record('data_records', $record);