Bug #5603
Import user in groups (from CSV file) is broken
Complexity:
Normal
SCRUM pts - complexity:
?
Description
There is two bug in Chamilo 1.9.2:
- In main/admin/usergroup_user_import.php; in method "function save_data($users_classes)":
The return statement must be outside of the foreach loop.
Be nice also to replace "$message = Display..." by "$message .= Display.." (the first one).
- In main/inc/lib/usergroup.lib.php; in method "public function get_id_by_name($name)":
The syntax for the where condition of the select statement is wrong: it must be:
"Database::select('id', $this->table, array('where' => array('name = ?' => $name)),'first');"
Associated revisions
History
Updated by Julio Montoya over 8 years ago
- Status changed from New to Assigned
- Assignee set to Julio Montoya
Updated by Julio Montoya over 8 years ago
Hi Christophe!
Thanks for reporting, I sent the fixes for chamilo 1.9.4
Updated by Julio Montoya over 8 years ago
- Status changed from Assigned to Needs testing
- Assignee deleted (
Julio Montoya) - % Done changed from 0 to 50
Updated by Julio Bonifacio Aliaga about 8 years ago
- Category set to Users/Groups
- Status changed from Needs testing to Bug resolved
- Assignee set to Julio Montoya
- % Done changed from 50 to 100
I tried it and it works very well with the changes applied, step to close this task.
Fixing class user group import see #5603 reported by Christophe J