Univention Bugzilla – Attachment 8077 Details for
Bug 42441
Traceback upon changing student's class assignment in UMC module "users (schools)"
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch
42441.patch (text/plain), 1.37 KB, created by
Florian Best
on 2016-10-07 12:48:05 CEST
(
hide
)
Description:
patch
Filename:
MIME Type:
Creator:
Florian Best
Created:
2016-10-07 12:48:05 CEST
Size:
1.37 KB
patch
obsolete
>diff --git a/ucs-school-umc-wizards/umc/js/schoolwizards/UserWizard.js b/ucs-school-umc-wizards/umc/js/schoolwizards/UserWizard.js >index e19e5e8..f88d640 100644 >--- a/ucs-school-umc-wizards/umc/js/schoolwizards/UserWizard.js >+++ b/ucs-school-umc-wizards/umc/js/schoolwizards/UserWizard.js >@@ -99,6 +99,14 @@ define([ > }) > }], > widgets: [{ >+ type: MultiInput, >+ name: 'schools', >+ label: _('Schools'), >+ initialValue: [this.selectedSchool], >+ subtypes: [{ >+ type: TextBox, >+ }] >+ }, { > type: TextBox, > name: 'firstname', > label: _('Firstname'), >@@ -234,16 +242,15 @@ define([ > } > this.umcpCommand('schoolwizards/classes', {'school': school}).then(lang.hitch(this, function(response) { > var classes = array.map(response.result, function(item) { >- return item.label; >+ return { >+ id: tools.explodeDn(item.id, true)[0], >+ label: item.label >+ } > }); > var widget = this.getWidget('item', 'school_classes'); > widget.set('staticValues', classes); > if (this.loadedValues) { >- var value = (this.loadedValues.school_classes[school] || [null])[0]; >- if (value) { >- value = value.indexOf(school + '-') === -1 ? value : value.slice(school.length + 1); >- } >- widget.set('value', value); >+ widget.set('value', (this.loadedValues.school_classes[school] || [null])[0]); > } > })); > }
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 42441
:
8061
| 8077