Univention Bugzilla – Attachment 7748 Details for
Bug 41590
Teacher+Staff is shown twice in "assign classes"/"Klassen zuweisen"
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch
41590.patch (text/plain), 991 bytes, created by
Florian Best
on 2016-06-16 00:08:10 CEST
(
hide
)
Description:
patch
Filename:
MIME Type:
Creator:
Florian Best
Created:
2016-06-16 00:08:10 CEST
Size:
991 bytes
patch
obsolete
>diff --git a/ucs-school-umc-groups/umc/python/schoolgroups/__init__.py b/ucs-school-umc-groups/umc/python/schoolgroups/__init__.py >index 6016fae..31a7219 100644 >--- a/ucs-school-umc-groups/umc/python/schoolgroups/__init__.py >+++ b/ucs-school-umc-groups/umc/python/schoolgroups/__init__.py >@@ -92,12 +92,8 @@ class Instance(SchoolBaseModule): > ) > @LDAP_Connection() > def query(self, request, ldap_user_read=None, ldap_position=None): >- klasses = [get_group_class(request)] >- if klasses[0] is Teacher: >- klasses.append(TeachersAndStaff) >- groups = [] >- for klass in klasses: >- groups.extend(klass.get_all(ldap_user_read, request.options['school'], filter_str=request.options['pattern'], easy_filter=True)) >+ klass = get_group_class(request) >+ groups = klass.get_all(ldap_user_read, request.options['school'], filter_str=request.options['pattern'], easy_filter=True) > self.finished(request.id, [group.to_dict() for group in groups]) > > @sanitize(StringSanitizer(required=True))
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 41590
: 7748