Project

General

Profile

Bug #5981

Special character in name avoid registering a trainee in a session

Added by Eric Petitdemange over 7 years ago. Updated about 7 years ago.

Status:
Bug resolved
Priority:
Normal
Category:
Users/Groups
Target version:
Start date:
22/02/2013
Due date:
% Done:

80%

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

Description

Hi,

I occur an issue registering names with apostrophe, such as d'assilva...
I can register the user in user part (as login I remove the '), so only the name is containing the special character.

When I go to session, I select the course, in the list of trainees I do see the name (here d'assilva), but I can't select it for registration.

If I go to the user and modify, by removing the ', I can then register the trainee in the session.


Files

user_with_apostrophe.jpg (101 KB) user_with_apostrophe.jpg Yoselyn Castillo, 22/02/2013 19:50
add_users_to_session.php (26 KB) add_users_to_session.php Yoselyn Castillo, 27/02/2013 06:59

History

#1

Updated by Yannick Warnier over 7 years ago

  • Category set to Users/Groups
  • Target version set to 1.9.6
#2

Updated by Yannick Warnier over 7 years ago

  • Assignee set to Yoselyn Castillo
#3

Updated by Yoselyn Castillo over 7 years ago

I have tested this and it worked fine for me...
I have created user with name "D'Mora D'Mora" and login "dmora"
I went to the session(session1)
I have entered the course(curso_2) through the session
I selected the list of teachers
I see the created user with name "D'Mora D'Mora" and login "dmora"
I could select the user for registering.
See the image
Please, show an image or specify the way to reproduce the bug

#4

Updated by Yoselyn Castillo over 7 years ago

  • Status changed from Assigned to Needs more info
  • Assignee changed from Yoselyn Castillo to Eric Petitdemange
#5

Updated by Yannick Warnier over 7 years ago

Yoselyn, sometimes the ' is not really a ' but rather the same character a little curled up like ` but the other way around. You can only get it by copy-pasting it from Word, for example. Maybe there is a small variation. Eric, if there's any chance you could explain more about where this ' sign came from, maybe we can figure it out...

#6

Updated by Eric Petitdemange over 7 years ago

Bug confirmed with Latest nightly (22).
Just downloaded, upgraded a 1.9.x with the packages.

I created 2 accounts:
1- First name Prud'homme, last name Denis
2- First name Romain, last name Prud'homme

I create a session with a course registered in it.
I try to register Both prud'homme men, when I click, the link changes it's color, the status bar says Java Void(0);

Note, I don't try multiple (just single registration)!

If you select from the multiple selection, it works....

Sorry I should have mention this.

A 'normal' name doesn't have the issue
here is a copy of one of the account name in case it's help : Prud'homme Denis (p)

Note I'm using UTF-8 encoding...

Stable Chamilo has the same (you'll find an account Prud'homme Denis, login: p, password: p) and a session named session prud'homme (with coursenligne as coach).

Just go to the registration from user list in the session (by default single is selected, so just type prud...)and try to register!!!

Good luck guys :)

#7

Updated by Yoselyn Castillo about 7 years ago

  • Status changed from Needs more info to Assigned
  • Assignee changed from Eric Petitdemange to Yoselyn Castillo
#8

Updated by Yoselyn Castillo about 7 years ago

You are right, the character "'" is causing problems for calling the function javascript.
Try this, i just have changed the character in visualization in:
main/admin/add_users_to_session.php

#9

Updated by Eric Petitdemange about 7 years ago

  • Status changed from Assigned to Bug resolved

Hi Yoselyn,

Thanks a lot for your help, this is working 100%! (both single and multiple registration).

Do you think a similar issue (as javascript is used) can cause correction of exercises errors?

If so having a quick look can be a good idea :)

Thanks again for the overcome.

#10

Updated by Yoselyn Castillo about 7 years ago

  • Status changed from Bug resolved to Assigned
  • Assignee changed from Yoselyn Castillo to Yannick Warnier
  • % Done changed from 0 to 80

Yannick, please upload add_users_to_session.php file, in order to testing in stable.chamilo.org
Coursenligne, What are "exercises errors" you have meant, are they in some task?. I could check it.

#11

Updated by Eric Petitdemange about 7 years ago

Hi, this is bug 5941.
I go on it and translate in english as written in french :)

Thanks in advance!

#12

Updated by Eric Petitdemange about 7 years ago

  • Status changed from Assigned to Bug resolved

I set to resolved!
I guess the modification is/will be added in a futur build....

THANKS AGAIN :)

#13

Updated by Eric Petitdemange about 7 years ago

I keep it as solved, but the file is not already integrated to latest nightly (03-04).

In the meantime, this confirm that it is definitely working (just replaced the file) :)

Also available in: Atom PDF