Univention Bugzilla – Bug 48028
Manual: class assignment is not changed if school_classes is empty
Last modified: 2023-03-25 06:49:56 CET
A support ticket raised the question why class assignments of teachers are not removed when school_classes is empty. Historical background: With import_user the field for the classes always had to be specified, but the assignment was done by the school via the UMC modules "Assigning teachers" and "Assigning classes". If an import was then performed, the class assignments made by the UMC modules would have been removed again. Therefore it was implemented that the assignments are only set if the value is not empty. This behavior was adopted in ucs-school-user-import. It is therefore (currently) a desired behavior. I have now documented the behavior in more detail in the import manual.
78263f281 Bug #48028: define behaviour of school_classes
It is indeed inconsistent with other properties. In other cases we distinguish between a) "no value" (None) because "no mapping" and b) "empty value" ('') because "has mapping but column empty". In case a) we do not change the property. In case b) we modify it to be empty. Bug the (now) documented behavior is IMHO OK, because a student or teacher without school_class is very unusual. Will a user that is deactivated, be automatically removed from its school_classes?
ok