Univention Bugzilla – Attachment 8886 Details for
Bug 44109
exam mode: cleanup of ucr variables fails (othershares/hosts/deny, marktplatz/hosts/deny, printmode/hosts/none, sharemode/room/examroom)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch
44109.patch (text/plain), 1.83 KB, created by
Florian Best
on 2017-05-30 13:45:05 CEST
(
hide
)
Description:
patch
Filename:
MIME Type:
Creator:
Florian Best
Created:
2017-05-30 13:45:05 CEST
Size:
1.83 KB
patch
obsolete
>diff --git a/ucs-school-umc-computerroom/umc/js/computerroom.js b/ucs-school-umc-computerroom/umc/js/computerroom.js >index ebd07bd..aa7ae6d 100644 >--- a/ucs-school-umc-computerroom/umc/js/computerroom.js >+++ b/ucs-school-umc-computerroom/umc/js/computerroom.js >@@ -929,7 +929,7 @@ define([ > } > > // start finishing the exam >- var info = this.get('roomInfo') || {}; >+ var info = lang.clone(this.get('roomInfo') || {}); > this.umcpCommand('schoolexam/exam/finish', { > exam: info.exam, > room: info.room >@@ -944,6 +944,10 @@ define([ > deferred.resolve(); > }); > >+ // reset room settings (prior to finishing the exam!) >+ this._settingsDialog.reset(); >+ this._settingsDialog.save(); >+ > // things to do after finishing the exam > deferred.then(lang.hitch(this, function() { > return this.umcpCommand('computerroom/exam/finish', { >@@ -959,9 +963,6 @@ define([ > delete info.examEndTime; > this.set('roomInfo', info); > >- // reset room settings >- this._settingsDialog.reset(); >- this._settingsDialog.save(); > } > })); > })); >diff --git a/ucs-school-umc-computerroom/umc/python/computerroom/__init__.py b/ucs-school-umc-computerroom/umc/python/computerroom/__init__.py >index ca77b63..c595f8c 100644 >--- a/ucs-school-umc-computerroom/umc/python/computerroom/__init__.py >+++ b/ucs-school-umc-computerroom/umc/python/computerroom/__init__.py >@@ -774,11 +778,10 @@ def settings_set(self, printMode, internetRule, shareMode, period=None, customRu > ucr.load() > if not ucr.get(varname): > vset[varname] = '""' >+ vunset.append(varname) > else: > # remove empty items ('""') in list > vset[varname] = ' '.join([x for x in vset[varname].split(' ') if x != '""']) >- if varname in vunset: >- del vunset[varname] > > # set values > ucr_vars = sorted('%s=%s' % x for x in vset.items())
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 44109
:
8880
|
8884
| 8886