Project

General

Profile

Bug #3970

Course has no category if you delete the category it belongs to

Added by Hubert Borderiou almost 8 years ago. Updated over 7 years ago.

Status:
Bug resolved
Priority:
Low
Assignee:
-
Category:
-
Target version:
Start date:
11/10/2011
Due date:
% Done:

100%

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

Description

Hi,
on a 1.9, I've created a course.
When you create a course, it must have a course_category.
I put my course in the course_category LANG
If I delete the category LANG, my course has no category, the field is empty in the database.

What to do ?
- allowed course to have no course_category, when you create it ?
- create a "No category" course_category by default, that admin cannot modify nor remove ?

Associated revisions

Revision 133cbab9 (diff)
Added by Julio Montoya almost 8 years ago

Allowing empty category courses see #3970

History

#1

Updated by Julio Montoya almost 8 years ago

I think this is the best option

- allowed course to have no course_category, when you create it ?

#2

Updated by Hubert Borderiou almost 8 years ago

I agree, if categories not used in another place.

#3

Updated by Julio Montoya almost 8 years ago

  • Status changed from New to Needs more info
  • % Done changed from 0 to 50

I added the feature with:

http://code.google.com/p/chamilo/source/detail?r=8d3264aafb4456405e1f6c664e24cb3b517b1ffa&repo=classic

but I'm not showing the courses with empty categories in the "Course catalog", just because it will took ages just to do that (is not difficult but the code makes me feel depressed - main/auth/courses.php )

#4

Updated by Julio Montoya over 7 years ago

  • Status changed from Needs more info to Bug resolved
  • % Done changed from 50 to 100

Also available in: Atom PDF