Project

General

Profile

Bug #3947

Add/Edit course category bug when using non alpha char in code

Added by Hubert Borderiou over 9 years ago. Updated almost 9 years ago.

Status:
Bug resolved
Priority:
Normal
Assignee:
-
Category:
-
Target version:
Start date:
30/09/2011
Due date:
% Done:

100%

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

Description

Hi,
there is a bug if you want to use non alpha chars in course category code.
For example if you want to add a course category with & in it (eg ENG1&2)
Or other char like " ...


Files

course_category.php (12 KB) course_category.php Yoselyn Castillo, 18/07/2012 14:53

History

#1

Updated by Julio Montoya over 9 years ago

  • Status changed from New to Needs more info
  • Target version set to 1.9 Stable
  • % Done changed from 0 to 50

I'm now using the same function used when adding a course code now it should be fixed. Commit sent in #3948

#2

Updated by Hubert Borderiou over 9 years ago

I've tested it on a recent 1.9 installation.
That's perfect.

#3

Updated by Yannick Warnier about 9 years ago

  • Target version changed from 1.9 Stable to 1.9 Beta
#4

Updated by Yannick Warnier about 9 years ago

  • Target version changed from 1.9 Beta to 1.9 RC1
#5

Updated by Yoselyn Castillo almost 9 years ago

  • Status changed from Needs more info to Assigned
  • Assignee set to Yoselyn Castillo

It doesn't appear any bug, but the special character dissapears when code category is showing

#6

Updated by Yoselyn Castillo almost 9 years ago

Sube este file si conviene. Hice esta modificacion en el file adjunto con el objetivo de que se puedan ver los caracteres alphanumericos que el user ha insertado en el category code pero realmente no se si hay algun acuerdo que no permita insertar los caracteres especiales en el category code, si es asi, entonces habria que anadir un visual_code para que el user vea lo caracteres especiales si los desea. Comentame respecto a esto

#7

Updated by Julio Montoya almost 9 years ago

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

el category code no debería tener caracteres "especiales" solo alfanuméricos por ello se usa el generate_course_code() que limpia el string
Voy a cerrar la tarea porque parece que funciona bien tal como está. Reabrir si existe un error.

Also available in: Atom PDF