Project

General

Profile

Bug #5659

class : import file csv to add users

Added by Philippe Nicolas about 9 years ago. Updated almost 9 years ago.

Status:
Bug resolved
Priority:
Normal
Assignee:
-
Category:
Classes
Target version:
Start date:
17/10/2012
Due date:
% Done:

100%

Estimated time:
Spent time:
Complexity:
Normal
SCRUM pts - complexity:
?

Description

avec
admin -> class -> import users
the import file
for example :

UserName;ClassName
alexis.abeloos;1TIA1
segolene.albers ;1TIA2

don't work !

Version 1.9.2


Files

capture2.png (116 KB) capture2.png Philippe Nicolas, 20/10/2012 12:31
ajout_users_1TIAB_test.csv (62 Bytes) ajout_users_1TIAB_test.csv Philippe Nicolas, 20/10/2012 12:31
Capture d’écran 2012-10-17 à 16.42.03.png (131 KB) Capture d’écran 2012-10-17 à 16.42.03.png Philippe Nicolas, 20/10/2012 12:31
Capture d’écran 2012-10-17 à 16.43.34.png (52.6 KB) Capture d’écran 2012-10-17 à 16.43.34.png Philippe Nicolas, 20/10/2012 12:31
Capture d’écran 2012-10-17 à 16.52.11.png (62.5 KB) Capture d’écran 2012-10-17 à 16.52.11.png Philippe Nicolas, 20/10/2012 12:31
Capture d’écran 2012-10-22 à 17.21.57.png (162 KB) Capture d’écran 2012-10-22 à 17.21.57.png Philippe Nicolas, 22/10/2012 17:38
bug.gif (24.3 KB) bug.gif Yoselyn Castillo, 26/10/2012 03:25
example_users_class.csv (51 Bytes) example_users_class.csv Yoselyn Castillo, 31/10/2012 14:17
example_users_class_fixed.csv (45 Bytes) example_users_class_fixed.csv Julio Montoya, 31/10/2012 17:31
test.png (52.4 KB) test.png Julio Montoya, 31/10/2012 17:31

History

#1

Updated by Julio Montoya about 9 years ago

  • Status changed from New to Assigned
  • Assignee changed from Yannick Warnier to Julio Montoya

Testing

#2

Updated by Julio Montoya about 9 years ago

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

Hello Phillipe,

I couldn't reproduced the error. Classes and users must be created first. Can you try to reproduce the error here? http://stable.chamilo.org/

I fixed another bug: when uploading a CSV file all users are deleted from the class.

Regards,

#3

Updated by Philippe Nicolas about 9 years ago

Hello,

Important : version 1.9.2 :

Ci-joint quelques screenshots au sujet de l'encoga des etudiants dans une classe

J'ai bien encodé les classes
j'ai bien encodé les utilisateurs
j'ai le fichier csv
l'import se fait bien
L'affichage indique qu'aucun étudiant n'a été ajouté !

La table n'est pas mise a jour ?

Ai-je fais une erreur ?

merci

#4

Updated by Julio Montoya about 9 years ago

In the screnshoots you're uploading just classes and not users in a class.
You should use this page:

main/admin/usergroup_user_import.php

#5

Updated by Philippe Nicolas about 9 years ago

Bonjour,

here is the good screenshot. The table "user group_rel_user" does not fill. If I add record directly in the table, the display is ok.

Merci

#6

Updated by Julio Montoya almost 9 years ago

  • Status changed from Needs testing to Assigned
  • Assignee set to Julio Montoya
  • Target version set to 1.9.4

mmm intredasting, checking ...

#7

Updated by Julio Montoya almost 9 years ago

  • Assignee changed from Julio Montoya to Yoselyn Castillo

I just did a test and it works, are you sure you don't have "blank" spaces in the class name? It seems to work fine for me.

Yoselyn can you try to reproduce this bug?

#8

Updated by Yoselyn Castillo almost 9 years ago

I am trying right now..

#9

Updated by Yoselyn Castillo almost 9 years ago

  • File bug.gif bug.gif added
  • Assignee changed from Yoselyn Castillo to Julio Montoya

Well, it doesn't work for me. I have tested with this csv content
UserName;ClassName
m;Clase2
ycastillo;Clase2

users ycastillo and m exists in stable.chamilo.org and clase2 exists too.
the result is attached in bug.gif

#10

Updated by Julio Montoya almost 9 years ago

  • Assignee changed from Julio Montoya to Yoselyn Castillo

Yoselyn Castillo wrote:

Well, it doesn't work for me. I have tested with this csv content
UserName;ClassName
m;Clase2
ycastillo;Clase2

users ycastillo and m exists in stable.chamilo.org and clase2 exists too.
the result is attached in bug.gif

can you attach here your csv file?

#11

Updated by Yoselyn Castillo almost 9 years ago

Here it is

#12

Updated by Yoselyn Castillo almost 9 years ago

  • Assignee changed from Yoselyn Castillo to Julio Montoya
#13

Updated by Julio Montoya almost 9 years ago

There's an error in your file what I see is this:

"UserName;ClassName
" 
m;Clase2
ycastillo;Clase2

The file content should be:

UserName;ClassName
m;Clase2
ycastillo;Clase2

And now it works:

#15

Updated by Yoselyn Castillo almost 9 years ago

I am going to check now..

#16

Updated by Yoselyn Castillo almost 9 years ago

  • Assignee changed from Yoselyn Castillo to Julio Montoya

Yes, it's really it works fine with the new file. Tested in
http://stable.chamilo.org/main/admin/add_users_to_usergroup.php?id=2
So i think there is no problem.

#17

Updated by Julio Montoya almost 9 years ago

  • Status changed from Assigned to Bug resolved
  • Assignee deleted (Julio Montoya)
  • % Done changed from 10 to 100

Seems to be fixed closing, feel free to reopen

Also available in: Atom PDF