View | Details | Raw Unified | Return to bug 45842 | Differences between
and this patch

Collapse All | Expand All

(-)a/management/univention-directory-manager-modules/modules/univention/admin/handlers/users/user.py (-1 / +1 lines)
 Lines 2270-2276   class object(univention.admin.handlers.simpleLdap): Link Here 
2270
2270
2271
	def _modlist_univention_person(self, ml):
2271
	def _modlist_univention_person(self, ml):
2272
		# make sure that univentionPerson is set as objectClass when needed
2272
		# make sure that univentionPerson is set as objectClass when needed
2273
		if any(self.hasChanged(ikey) and self[ikey] for ikey in ('umcProperty', 'birthday')):
2273
		if any(self.hasChanged(ikey) and self[ikey] for ikey in ('umcProperty', 'birthday')) and 'univentionPerson' not in self.oldattr.get('objectClass', []):
2274
			ml.append(('objectClass', '', 'univentionPerson'))  # TODO: check if exists already
2274
			ml.append(('objectClass', '', 'univentionPerson'))  # TODO: check if exists already
2275
		return ml
2275
		return ml
2276
2276

Return to bug 45842