Project

General

Profile

Bug #5603

Import user in groups (from CSV file) is broken

Added by Christophe J about 9 years ago. Updated over 8 years ago.

Status:
Bug resolved
Priority:
Normal
Assignee:
Category:
Users/Groups
Target version:
Start date:
05/10/2012
Due date:
% Done:

100%

Estimated time:
1.00 h
Spent time:
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

Revision fff8597c (diff)
Added by Julio Montoya about 9 years ago

Fixing class user group import see #5603 reported by Christophe J

History

#1

Updated by Julio Montoya about 9 years ago

  • Status changed from New to Assigned
  • Assignee set to Julio Montoya
#2

Updated by Julio Montoya about 9 years ago

Hi Christophe!
Thanks for reporting, I sent the fixes for chamilo 1.9.4

#3

Updated by Julio Montoya about 9 years ago

  • Status changed from Assigned to Needs testing
  • Assignee deleted (Julio Montoya)
  • % Done changed from 0 to 50
#4

Updated by Yannick Warnier almost 9 years ago

  • Target version set to 1.9.6
#5

Updated by Julio Bonifacio Aliaga over 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.

Also available in: Atom PDF