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

Collapse All | Expand All

(-)a/management/univention-directory-manager-modules/modules/univention/admin/syntax.py (-6 / +4 lines)
 Lines 3384-3395   class IStates(select): Link Here 
3384
3384
3385
	@classmethod
3385
	@classmethod
3386
	def parse(cls, text):
3386
	def parse(cls, text):
3387
		if isinstance(text, basestring):
3387
		for value, (choice, label) in cls.values:
3388
			return text
3388
			if text == value or text == choice:
3389
		for value, choice in cls.values:
3389
				return choice
3390
			if text == value:
3390
		raise univention.admin.uexceptions.valueInvalidSyntax(_('Invalid choice.'))
3391
				return choice[0]
3392
		return text
3393
3391
3394
	@classmethod
3392
	@classmethod
3395
	def get_object_property_filter(cls, object_property, object_property_value):
3393
	def get_object_property_filter(cls, object_property, object_property_value):

Return to bug 40731