Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.9, 1.9.1
-
Fix Version/s: 1.9.2
-
Component/s: Database activity module
-
Labels:None
-
Database:Any
-
Affected Branches:MOODLE_19_STABLE
-
Fixed Branches:MOODLE_19_STABLE
Description
People have been asking for exporting all possible records of a database activity as a CSV file since one year. "All possible records" are all records from field types other than "file" or "picture". Dan Poltawski finally submitted this patch yesterday at MDL-8407. I have re-submitted it including some bugfixes recently, as "MDL-8407-20080419.patch", which works fine against the latest Moodle 1.9+.
The patch attached here allows you to use the exported CSV file to be used to import all the records. The current implementation failed to import some fields, such as multimenu and latlong.
In addition, the import process should be less resource eating, since it avoids to read files that are not necessary and does not create mega-objects such like $currentfield. During the import process, there is output written to the browser what has actually been done.
Attachments
Issue Links
| This issue has been marked as being related by: | ||||
| MDL-8407 | Export records of a database activity as a CSV, XLS, or ODS file |
|
|
|
New version of the patch from today ("
MDL-14442-20080420.patch") with additional fixes:+ When "url" type fields also have a name, it also gets imported. A complete url field within the CSV file should look like: url name
+ First round of inserting new data_content fields ensures all contents to be NULL, the actual values get filled in at the second round.
Tested successfully with these field types:
text, textarea, menu, multimenu, url, latlong
MDL-14442-20080420.patch") with additional fixes: + When "url" type fields also have a name, it also gets imported. A complete url field within the CSV file should look like: url name + First round of inserting new data_content fields ensures all contents to be NULL, the actual values get filled in at the second round. Tested successfully with these field types: text, textarea, menu, multimenu, url, latlong