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

Collapse All | Expand All

(-)a/management/univention-directory-manager-modules/modules/univention/admin/handlers/container/cn.py (-5 / +3 lines)
 Lines 235-245   def open(self): Link Here 
235
		for prop in self.PATH_KEYS:
235
		for prop in self.PATH_KEYS:
236
			self[prop] = '0'
236
			self[prop] = '0'
237
237
238
		for prop in self.PATH_KEYS:
238
		for prop, attr in self.PATH_KEYS.iteritems():
239
			if prop in pathResult:
239
			if any(x == self.dn for x in pathResult.get(attr, [])):
240
				for j in pathResult[prop]:
240
				self[prop] = '1'
241
					if j == self.dn:
242
						self[prop] = '1'
243
241
244
		self.save()
242
		self.save()
245
243
(-)a/management/univention-directory-manager-modules/modules/univention/admin/handlers/container/ou.py (-5 / +3 lines)
 Lines 237-247   def open(self): Link Here 
237
		for prop in self.PATH_KEYS:
237
		for prop in self.PATH_KEYS:
238
			self[prop] = '0'
238
			self[prop] = '0'
239
239
240
		for prop in self.PATH_KEYS:
240
		for prop, attr in self.PATH_KEYS.iteritems():
241
			if prop in pathResult:
241
			if any(x == self.dn for x in pathResult.get(attr, [])):
242
				for j in pathResult[prop]:
242
				self[prop] = '1'
243
					if j == self.dn:
244
						self[prop] = '1'
245
243
246
		self.save()
244
		self.save()
247
245

Return to bug 43396