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.
This commit is contained in:
Adrian Greeve
2014-11-04 09:58:05 +13:00
committed by Sam Hemelryk
parent 79eda0e9a0
commit 2c639e85a3
-1
View File
@@ -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);