Index: /main/kofacustom.unidel/trunk/src/kofacustom/unidel/students/utils.py
===================================================================
--- /main/kofacustom.unidel/trunk/src/kofacustom/unidel/students/utils.py	(revision 18366)
+++ /main/kofacustom.unidel/trunk/src/kofacustom/unidel/students/utils.py	(revision 18367)
@@ -528,5 +528,9 @@
         #depcode = student.depcode
         #certcode = student.certcode
-        if not student.state in (PAID, ) or not student.is_fresh:
+        if not (
+            student.state in (PAID, REGISTERED) and
+            student.is_fresh and
+            student.current_mode in ('ug_ft',)
+            ):
             return _('Matriculation number cannot be set.'), None
         year = unicode(student.entry_session)[2:]
