Univention Bugzilla – Attachment 9055 Details for
Bug 45066
Regression: Handling of boolean UDM attributes by UMC
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
proposed patch
45066_boolean.patch (text/plain), 1019 bytes, created by
Jürn Brodersen
on 2017-07-25 18:05:20 CEST
(
hide
)
Description:
proposed patch
Filename:
MIME Type:
Creator:
Jürn Brodersen
Created:
2017-07-25 18:05:20 CEST
Size:
1019 bytes
patch
obsolete
>Index: univention-directory-manager-modules/modules/univention/admin/handlers/__init__.py >=================================================================== >--- univention-directory-manager-modules/modules/univention/admin/handlers/__init__.py (revision 80962) >+++ univention-directory-manager-modules/modules/univention/admin/handlers/__init__.py (working copy) >@@ -837,7 +837,10 @@ > # Make sure all default values are set... > for name, p in self.descriptions.items(): > # ... if property has no option or any required option is currently enabled >- if self.has_key(name) and p.default(self): # noqa: W601 >+ # Unset extending attributes with datatype boolean are interpreted as false >+ # and should not be set to their default value during object modification. >+ existing_boolean = self.exists() and p.syntax.type == 'boolean' >+ if self.has_key(name) and p.default(self) and not existing_boolean: # noqa: W601 > self[name] # __getitem__ sets default value > > def _ldap_object_classes(self, ml):
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 45066
: 9055