Univention Bugzilla – Attachment 8358 Details for
Bug 43373
remove property from layout via extended attribute
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch
43373.patch (text/plain), 891 bytes, created by
Florian Best
on 2017-01-19 10:57:17 CET
(
hide
)
Description:
patch
Filename:
MIME Type:
Creator:
Florian Best
Created:
2017-01-19 10:57:17 CET
Size:
891 bytes
patch
obsolete
>diff --git a/management/univention-directory-manager-modules/modules/univention/admin/modules.py b/management/univention-directory-manager-modules/modules/univention/admin/modules.py >index 39ad6b1..4faf014 100644 >--- a/management/univention-directory-manager-modules/modules/univention/admin/modules.py >+++ b/management/univention-directory-manager-modules/modules/univention/admin/modules.py >@@ -438,6 +438,15 @@ def update_extended_attributes(lo, module, position): > groupName=groupname, > groupPosition=groupPosition, > )) >+ else: >+ def remove_from_layout(x): >+ if hasattr(x, 'layout'): >+ if pname in x.layout: >+ x.layout = list(x.layout) >+ x.layout.remove(pname) >+ for y in x.layout: >+ remove_from_layout(y) >+ remove_from_layout(module) > > module.extended_udm_attributes.append(univention.admin.extended_attribute( > name=pname,
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 43373
: 8358