Skip to content
Permalink
Browse files

Merge branch 'MDL-47247-36' of git://github.com/mihailges/moodle into…

… MOODLE_36_STABLE
  • Loading branch information...
sarjona committed Jan 30, 2019
2 parents 4b07fd7 + 0932a5b commit 730b017a9c2204fed403693e6430a4b81e87ff36
Showing with 4 additions and 0 deletions.
  1. +4 −0 mod/folder/lib.php
@@ -105,6 +105,10 @@ function folder_add_instance($data, $mform) {
$draftitemid = $data->files;
$data->timemodified = time();
// If 'showexpanded' is not set, apply the site config.
if (!isset($data->showexpanded)) {
$data->showexpanded = get_config('folder', 'showexpanded');
}
$data->id = $DB->insert_record('folder', $data);
// we need to use context now, so we need to make sure all needed info is already in db

0 comments on commit 730b017

Please sign in to comment.
You can’t perform that action at this time.