View | Details | Raw Unified | Return to bug 54680
Collapse All | Expand All

(-)management/univention-directory-manager-modules/modules/univention/admin/handlers/__init__.py (-1 / +1 lines)
 Lines 1298-1304   class simpleLdap(object): Link Here 
1298
		ocs = set()  # type: Set[str]
1298
		ocs = set()  # type: Set[str]
1299
		for prop in getattr(m, 'extended_udm_attributes', []):
1299
		for prop in getattr(m, 'extended_udm_attributes', []):
1300
			ud.debug(ud.ADMIN, ud.INFO, 'simpleLdap._create: info[%s]:%r = %r' % (prop.name, self.has_property(prop.name), self.info.get(prop.name)))
1300
			ud.debug(ud.ADMIN, ud.INFO, 'simpleLdap._create: info[%s]:%r = %r' % (prop.name, self.has_property(prop.name), self.info.get(prop.name)))
1301
			if prop.syntax == 'boolean' and self.info.get(prop.name) == u'0':
1301
			if prop.syntax == 'boolean' and self.info.get(prop.name) == u'0' and self.module != 'settings/usertemplate':
1302
				continue
1302
				continue
1303
			if self.has_property(prop.name) and self.info.get(prop.name):
1303
			if self.has_property(prop.name) and self.info.get(prop.name):
1304
				ocs.add(prop.objClass)
1304
				ocs.add(prop.objClass)
(-)management/univention-management-console-module-udm/umc/js/udm/DetailPage.js (-6 / +1 lines)
 Lines 254-260   define([ Link Here 
254
254
255
			// when the commands have been finished, create the detail page
255
			// when the commands have been finished, create the detail page
256
			all(commands).then(lang.hitch(this, function(results) {
256
			all(commands).then(lang.hitch(this, function(results) {
257
				var template = lang.getObject('template.result', false, results) || null;
257
				var template = lang.clone(results.template && results.template.result && results.template.result[0]) || null;
258
				var layout = lang.clone(results.layout);
258
				var layout = lang.clone(results.layout);
259
				var policies = lang.clone(results.policies);
259
				var policies = lang.clone(results.policies);
260
				var properties = lang.clone(results.properties);
260
				var properties = lang.clone(results.properties);
 Lines 1243-1253   define([ Link Here 
1243
				}
1243
				}
1244
			}));
1244
			}));
1245
1245
1246
			if (template && template.length > 0) {
1247
				template = template[0];
1248
			} else {
1249
				template = null;
1250
			}
1251
			// create detail page
1246
			// create detail page
1252
			this._tabs = new StackContainer({
1247
			this._tabs = new StackContainer({
1253
				region: 'main'
1248
				region: 'main'
(-)management/univention-management-console-module-udm/umc/python/udm/__init__.py (+2 lines)
 Lines 543-548   class Instance(Base, ProgressMixin): Link Here 
543
						props['$dn$'] = obj.dn
543
						props['$dn$'] = obj.dn
544
					props['$options$'] = {}
544
					props['$options$'] = {}
545
					for opt in module.get_options(udm_object=obj):
545
					for opt in module.get_options(udm_object=obj):
546
						if module.name == 'settings/usertemplate' and opt['value']:
547
							props['_options'].append(opt['id'])
546
						props['$options$'][opt['id']] = opt['value']
548
						props['$options$'][opt['id']] = opt['value']
547
					props['$policies$'] = {}
549
					props['$policies$'] = {}
548
					for policy in obj.policies:
550
					for policy in obj.policies:
(-)management/univention-management-console-module-udm/umc/python/udm/udm_ldap.py (+3 lines)
 Lines 153-158   class AppAttributes(object): Link Here 
153
	def data_for_module(cls, module):
153
	def data_for_module(cls, module):
154
		if cls._cache is None:
154
		if cls._cache is None:
155
			cls.reload_cache(module)
155
			cls.reload_cache(module)
156
		if module == 'settings/usertemplate' and module not in cls._cache:
157
			module = 'users/user'
158
			cls.reload_cache(module)
156
		return cls._cache.get(module, {})
159
		return cls._cache.get(module, {})
157
160
158
	@classmethod
161
	@classmethod

Return to bug 54680