Commit 837c4dab authored by Eloy Lafuente (stronk7)'s avatar Eloy Lafuente (stronk7)
Browse files

Merge branch 'wip-MDL-51259-28' of git://github.com/abgreeve/moodle into MOODLE_28_STABLE

parents f7666835 76ebf76b
......@@ -899,6 +899,11 @@ function data_add_instance($data, $mform = null) {
$data->assessed = 0;
}
if (empty($data->ratingtime) || empty($data->assessed)) {
$data->assesstimestart = 0;
$data->assesstimefinish = 0;
}
$data->timemodified = time();
$data->id = $DB->insert_record('data', $data);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment