Permalink
Browse files

Merge branch 'MDL-38632' of git://github.com/stronk7/moodle

  • Loading branch information...
2 parents ddeea94 + d86db37 commit 8963212472b6194be9d46f4b70e0c1275752839b @nebgor nebgor committed Mar 27, 2013
Showing with 2 additions and 1 deletion.
  1. +2 −1 mod/folder/lib.php
View
@@ -426,14 +426,15 @@ function folder_dndupload_handle($uploadinfo) {
function folder_get_coursemodule_info($cm) {
global $DB;
if (!($folder = $DB->get_record('folder', array('id' => $cm->instance),
- 'id, name, display, intro, introformat'))) {
+ 'id, name, display, show_expanded, intro, introformat'))) {
return NULL;
}
$cminfo = new cached_cm_info();
$cminfo->name = $folder->name;
if ($folder->display == FOLDER_DISPLAY_INLINE) {
// prepare folder object to store in customdata
$fdata = new stdClass();
+ $fdata->show_expanded = $folder->show_expanded;
if ($cm->showdescription && strlen(trim($folder->intro))) {
$fdata->intro = $folder->intro;
if ($folder->introformat != FORMAT_MOODLE) {

0 comments on commit 8963212

Please sign in to comment.