Project

General

Profile

Bug #3948

Courses loose there categories if you rename a category code

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

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

80%

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

Description

Hi,
I have 3 courses in the category Language skills (code=LANG)
When I rename the category code, my 3 courses loose the "Language skills" category, but in the course list, I still see, in the column category : LANG, which is not a category code anymore.

It's a very old issue... the point is that course_category key is the category code an not an interger id...

Associated revisions

Revision b229bcf7 (diff)
Added by Julio Montoya over 9 years ago

Fixed Course category bug when renaming the category code see #3948

History

#1

Updated by Julio Montoya over 9 years ago

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

You are right there should be the category_id not the code, but since this was very bad developed, a solution would be to update the course.category_code field when updating the category code

#2

Updated by Julio Montoya over 9 years ago

  • Status changed from Assigned to Needs more info
  • % Done changed from 0 to 80
#3

Updated by Hubert Borderiou over 9 years ago

I doesn't work, I cannot go to the admin page Course list. May be the patche doesn't work from the 1.8.8.4 orig files.

#4

Updated by Hubert Borderiou over 9 years ago

Ok, tested on a recent 1.9 installation and it's ok.
Great :)

#5

Updated by Julio Montoya over 9 years ago

  • Status changed from Needs more info to Bug resolved
  • Assignee deleted (Julio Montoya)

Also available in: Atom PDF