Bug #4069
Import of sessions via XML doesn't work
Description
main/admin/session_import.php seems that doesn't create any sessions, any courses, nothing
Associated revisions
Fixes bug while importing sessions via a XML file see #4069
Minor - adding message see #4069
History
Updated by Julio Montoya over 9 years ago
- Status changed from New to Needs testing
- % Done changed from 0 to 50
I removed that functionality from the XML import + other fixes
Updated by Yannick Warnier over 8 years ago
Julio, it is not entirely clear to me what was the problem here... The title seems to say the fact that the session import created courses wasn't the right thing, then the description says that "the session import doesn't do that", but the that is not clear either. Then you say you fixed it by removing it, and I'm completely lost :-D
Updated by Julio Montoya over 8 years ago
- Subject changed from Session import XML create courses to Import of sessions via XML doesn't work
Yannick Warnier wrote:
Julio, it is not entirely clear to me what was the problem here... The title seems to say the fact that the session import created courses wasn't the right thing, then the description says that "the session import doesn't do that", but the that is not clear either. Then you say you fixed it by removing it, and I'm completely lost :-D
Sorry for that! :)
Updated by Julio Montoya over 8 years ago
- Status changed from Needs testing to Assigned
- Assignee set to Julio Montoya
Updated by Julio Montoya over 8 years ago
- Status changed from Assigned to Needs more info
- Assignee deleted (
Julio Montoya) - % Done changed from 50 to 70
I sent some fixes, now it works. But the XML and CSV import have different behaviours: the XML create users and courses (if the username doesn't exist), while the CSV doesn't do that.
Updated by Yannick Warnier over 8 years ago
- Status changed from Needs more info to Assigned
- Assignee set to Julio Montoya
No reason to have different behaviours, so I'm re-assigning to you (soooorryyyy :-p). I personally think users and courses should be created if they don't exist.
Updated by Julio Montoya over 8 years ago
- Status changed from Assigned to Needs more info
- Assignee changed from Julio Montoya to Yannick Warnier
The CSV will be very very complicated if I do that because I need firstname, email, etc etc same thing with courses the current CSV file has something like this:
SessionName;Coach;DateStart;DateEnd;Users;Courses xxx1;xxx;xxx;xxx;username1|username2;course1[coach1][username1,username2,...]|course2[coach1][username1,username2,...] xxx2;xxx;xxx;xxx;username1|username2;course1[coach1][username1,username2,...]|course2[coach1][username1,username2,...]
So the XML import will not create users/sessions in order to have the same behaviour OR I add a lot of parameters in the CSV file ...
Updated by Yannick Warnier over 8 years ago
- Status changed from Needs more info to Assigned
- Assignee changed from Yannick Warnier to Julio Montoya
- Leave things just as they are
- Add a language variable that says "The XML import let's you add more info and create resources (courses, users). The CSV import will only create sessions and let you assign existing resources to them." (and mark that as a normal-message class)
Updated by Julio Montoya over 8 years ago
- Status changed from Assigned to Needs more info
- Assignee deleted (
Julio Montoya) - % Done changed from 70 to 80
message added to translate.chamilo
TheXMLImportLetYouAddMoreInfoAndCreateResources
Updated by Yannick Warnier over 8 years ago
- Status changed from Needs more info to Bug resolved
Good for me
Fixing export/import session list from CSV/XML see #4069