Index: /main/waeup.aaue/trunk/src/waeup/aaue/students/studylevel.py
===================================================================
--- /main/waeup.aaue/trunk/src/waeup/aaue/students/studylevel.py	(revision 16756)
+++ /main/waeup.aaue/trunk/src/waeup/aaue/students/studylevel.py	(revision 16757)
@@ -348,4 +348,6 @@
         # not exist, students and managers will be prevented from registering
         # the corresponding course.
+        # If a certificate course is found, the course_category will be used
+        # for the course ticket.
         cert = self.__parent__.certificate
         ticket_allowed = False
@@ -353,4 +355,5 @@
             if val.course == course:
                 ticket_allowed = True
+                course_category = val.course_category
                 break
         if not ticket_allowed:
@@ -363,4 +366,5 @@
         ticket.dcode = course.__parent__.__parent__.code
         ticket.credits = course.credits
+        ticket.course_category = course_category
         if self.student.entry_session < 2013:
             ticket.passmark = course.passmark - 5
@@ -383,5 +387,5 @@
                 ticket.mandatory = val.mandatory
                 ticket.carry_over = False
-                ticket.course_category = val.course_category
+                #ticket.course_category = val.course_category
                 try:
                     self.addCourseTicket(ticket, val.course)
