Import user in groups (from CSV file) is broken
SCRUM pts - complexity:
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');"