Univention Bugzilla – Attachment 4950 Details for
Bug 29635
Änderungen von initial nicht gesetzten ComboBox-Werten werden nicht korrekt übernommen
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Recognize values that are automatically chosen (first possible value) as a change
020_bug29635.patch (text/plain), 1.24 KB, created by
Dirk Wiesenthal
on 2012-12-21 22:12:59 CET
(
hide
)
Description:
Recognize values that are automatically chosen (first possible value) as a change
Filename:
MIME Type:
Creator:
Dirk Wiesenthal
Created:
2012-12-21 22:12:59 CET
Size:
1.24 KB
patch
obsolete
>Recognize values that are automatically chosen (first possible value) as a change (Bug #29635) >Index: umc/js/udm/DetailPage.js >=================================================================== >--- umc/js/udm/DetailPage.js (Revision 37887) >+++ umc/js/udm/DetailPage.js (Arbeitskopie) >@@ -728,6 +728,18 @@ > // save the original form data > this._form.ready().then(lang.hitch(this, function() { > this._receivedObjFormData = this.getValues(); >+ tools.forIn(this._receivedObjFormData, lang.hitch(this, function(ikey, ivalue) { >+ var widget = this._form.getWidget(ikey); >+ if (!(ikey in this._receivedObjOrigData) && tools.inheritsFrom(widget, 'umc.widgets.ComboBox')) { >+ // ikey was not received from server and it is a ComboBox >+ // => the value may very well be set because there is >+ // no empty choice (in this case the first choice is selected). >+ // this means that this value would not be >+ // recognized as a change! >+ // console.log(ikey, ivalue); // uncomment this to see which values will be send to the server >+ this._receivedObjFormData[ikey] = ''; >+ } >+ })); > this._receivedObjFormData.$policies$ = this._receivedObjOrigData.$policies$; > })); > }));
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 29635
: 4950