Univention Bugzilla – Bug 46872
[Backport to 4.2] show dialog to create room instead of empty room selection
Last modified: 2018-07-04 18:07:45 CEST
+++ This bug was initially created as a clone of Bug #43080 +++ If there is no room yet and one opens the computeroom module one one need to select a room from an empty list. This is a first user experience. We should instead show a dialog which tells to create a room via the UMC module.
Bug for backporting to 4.2
Package: ucs-school-umc-computerroom Version: 9.0.9-1A~4.2.0.201804240940
DC Master: root@m120:~# python -c ' > import univention.admin.uldap > from ucsschool.lib.models import ComputerRoom, School > lo, po = univention.admin.uldap.getAdminConnection() > for school in School.get_all(lo): > print school.name, ComputerRoom.get_all(lo, school.name)' SchuleEins [ComputerRoom(name='SchuleEins-room01', school='SchuleEins', dn='cn=SchuleEins-room01,cn=raeume,cn=groups,ou=SchuleEins,dc=uni,dc=dtr'), ComputerRoom(name='SchuleEins-room02', school='SchuleEins', dn='cn=SchuleEins-room02,cn=raeume,cn=groups,ou=SchuleEins,dc=uni,dc=dtr'), ComputerRoom(name='SchuleEins-room03', school='SchuleEins', dn='cn=SchuleEins-room03,cn=raeume,cn=groups,ou=SchuleEins,dc=uni,dc=dtr')] SchuleZwei [] SchuleDrei [] SchuleVier [] root@m120:~# python -c ' > import univention.admin.uldap > from ucsschool.lib.models import ComputerRoom, School > lo, po = univention.admin.uldap.getAdminConnection() > for school in School.get_all(lo): > for room in ComputerRoom.get_all(lo, school.name): > room.remove(lo)' root@m120:~# python -c ' import univention.admin.uldap from ucsschool.lib.models import ComputerRoom, School lo, po = univention.admin.uldap.getAdminConnection() for school in School.get_all(lo): print school.name, ComputerRoom.get_all(lo, school.name)' SchuleEins [] SchuleZwei [] SchuleDrei [] SchuleVier [] DC Slave: root@s121:~# dpkg -l ucs-school-umc-computerroom ii ucs-school-umc-computerr 9.0.9-1A~4.2.0.20 all In the UMC, the module opens and displays the empty list for the (aphabetically sorted) first OU. No dialog appears. Logged in as "Administrator".
Tested with Chrome 66.0.3359.139 (stable) and Firefox ESR 52.7.3.
This bug is concerned with the Education->computerroom module and not the school administration->room management module.
src: ucs-school-umc-rooms fix: 14.0.1-1A~4.2.0.201805300953 src: ucs-school-umc-computerroom fix: 9.0.9-2A~4.2.0.201805300955
See bug 43080 comment 12
Same fixes as mentioned in Bug #43080 src: ucs-school-umc-computerroom fix: 9.0.9-3A~4.2.0.201806070855 src: ucs-school-umc-rooms fix: 14.0.1-2A~4.2.0.201806070853
OK looks good now :) -> Verified
UCS@school 4.2 v10 has been released. https://docs.software-univention.de/changelog-ucsschool-4.2v10-de.html If this error occurs again, please clone this bug.