Project

General

Profile

Bug #1047

Empty course creation needs fixing about "Documents" tool

Added by Ivan Tcholakov over 9 years ago. Updated over 9 years ago.

Status:
Feature implemented
Priority:
Normal
Category:
-
Target version:
Start date:
20/04/2010
Due date:
% Done:

100%

Estimated time:
Complexity:
Easy
SCRUM pts - complexity:
?

Description

Set the platform administrator's setting "Portal" > "Example material on training creation" to "No". All below considers this case.

Create a course, it will be empty as a result. But we need to clarify what "empty course" is, while looking at the "Documents" tool.

There are some kind of "system" folders which some other tools assume that these folders exist. For example, the online editor might look at images/gallery/ when a new image is inserted.

All those "system" folders should be created in a new empty course, only they should be empty. And in the past, we made sure that the "system" folders can not be deleted. :-)

I think, we have to check when a course is emptied through the "Backup" tool, whether "system" folder are preserved or not. But let this check be done under other task.

Currently, only the folder "certificates" is visible in the "Documents" tool. The other "system" folders are created in the file system, but the correspondent database records are missing.

History

#1

Updated by Ivan Tcholakov over 9 years ago

  • Complexity changed from Normal to Easy

Here is a solution proposal, it seems to me to be easy:

File: main/inc/lib/add_course.lib.inc.php, lines 2244, 2245:

    if(api_get_setting('example_material_course_creation')<>'false')
    {

Move these lines after the line 2331 (before the section "Agenda tool").

#2

Updated by Ivan Tcholakov over 9 years ago

  • Status changed from New to Assigned
  • Assignee set to Ivan Tcholakov
  • Target version set to 1.8.7 beta

I think, the solution is good, so I am going to apply it ASAP.

#3

Updated by Ivan Tcholakov over 9 years ago

  • Status changed from Assigned to Feature implemented
  • % Done changed from 0 to 100

11565:ef61548b6d82 Bug #1047 - A Correction: Now all the "system" folders (empty) are created in the "Documents" tool when an empty course is created.
http://code.google.com/p/chamilo/source/detail?r=ef61548b6d8224f647aaa46e7ba609f8a3e032b6&repo=classic

Also available in: Atom PDF