Index: main/waeup.kofa/trunk/src/waeup/kofa/applicants/browser.py
===================================================================
--- main/waeup.kofa/trunk/src/waeup/kofa/applicants/browser.py	(revision 16071)
+++ main/waeup.kofa/trunk/src/waeup/kofa/applicants/browser.py	(revision 16072)
@@ -787,6 +787,5 @@
             return
         if not self.context.special:
-            for key in self.context.keys():
-                ticket = self.context[key]
+            for ticket in self.context.payments:
                 if ticket.p_state == 'paid':
                       self.flash(
@@ -1120,4 +1119,21 @@
         else:
             changed_fields = []
+        # In custom packages we needed to customize the certificate
+        # select widget. We just save course1 and course2 if these customized
+        # fields appear in the form.
+        course1 = form.get('custom.course1', None)
+        course2 = form.get('custom.course2', None)
+        if course1:
+            cat = queryUtility(ICatalog, name='certificates_catalog')
+            results = list(
+                cat.searchResults(code=(course1, course1)))
+            self.context.course1 = results[0]
+            changed_fields.append('course1')
+        if course2:
+            cat = queryUtility(ICatalog, name='certificates_catalog')
+            results = list(
+                cat.searchResults(code=(course2, course2)))
+            self.context.course2 = results[0]
+            changed_fields.append('course1')
         if password:
             # Now we know that the form has no errors and can set password ...
