Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
integration
prechecker
Commits
837c4dab
Commit
837c4dab
authored
Sep 23, 2015
by
Eloy Lafuente
Browse files
Merge branch 'wip-MDL-51259-28' of
git://github.com/abgreeve/moodle
into MOODLE_28_STABLE
parents
f7666835
76ebf76b
Changes
1
Hide whitespace changes
Inline
Side-by-side
mod/data/lib.php
View file @
837c4dab
...
...
@@ -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
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment