Univention Bugzilla – Bug 35195
"valid until" value change does not take effect
Last modified: 2019-02-05 21:20:46 CET
In computer room settings web interface: Changing the "valid until" compobox value does not take effect.
The settings dialog suggest the end time of the current lesson. If the "valid until" time is changed, the correct value is sent via UMCP to the UMC server but afterwards if the settings are read, the old value is returned from the server.
The problem lies in the file: /usr/share/pyshared/univention/management/console/modules/computerroom/__init__.py line 605 assigns period to be a lession object. This modification removes the bug, but still need to look at the desired behavior if time = lesson.begin: @@ -602,8 +602,10 @@ time = self._ruleEndAt.time() for lesson in self._lessons.lessons: if time == lesson.begin: - period = lesson + period = lesson.end # ← what is the desired behavior? break + else: + period = time self.finished(request.id, { 'internetRule' : rule,
Please re-enable script "22_computerroom_time_settings" created for bug #35151 after this bug is fixed.
This issue has been filled against UCS@school 4.0. The maintenance with bug and security fixes for UCS@school 4.0 has ended on May 31, 2016. Customers still on UCS 4.0 are encouraged to update to UCS 4.3 (or later). Please contact your partner or Univention for any questions. If this issue still occurs in newer UCS versions, please use "Clone this bug" or simply reopen the issue. In this case please provide detailed information on how this issue is affecting you.