Skip to content

Commit

Permalink
MDL-47697 mod_data: Fix group id change when editing.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
abgreeve authored and Sam Hemelryk committed Nov 3, 2014
1 parent 40afeb4 commit c4a6c65
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion mod/data/edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,6 @@
$record->approved = 0;
}

$record->groupid = $currentgroup;
$record->timemodified = time();
$DB->update_record('data_records', $record);

Expand Down

0 comments on commit c4a6c65

Please sign in to comment.