|
Lines 728-733
Link Here
|
| 728 |
// save the original form data |
728 |
// save the original form data |
| 729 |
this._form.ready().then(lang.hitch(this, function() { |
729 |
this._form.ready().then(lang.hitch(this, function() { |
| 730 |
this._receivedObjFormData = this.getValues(); |
730 |
this._receivedObjFormData = this.getValues(); |
|
|
731 |
tools.forIn(this._receivedObjFormData, lang.hitch(this, function(ikey, ivalue) { |
| 732 |
var widget = this._form.getWidget(ikey); |
| 733 |
if (!(ikey in this._receivedObjOrigData) && tools.inheritsFrom(widget, 'umc.widgets.ComboBox')) { |
| 734 |
// ikey was not received from server and it is a ComboBox |
| 735 |
// => the value may very well be set because there is |
| 736 |
// no empty choice (in this case the first choice is selected). |
| 737 |
// this means that this value would not be |
| 738 |
// recognized as a change! |
| 739 |
// console.log(ikey, ivalue); // uncomment this to see which values will be send to the server |
| 740 |
this._receivedObjFormData[ikey] = ''; |
| 741 |
} |
| 742 |
})); |
| 731 |
this._receivedObjFormData.$policies$ = this._receivedObjOrigData.$policies$; |
743 |
this._receivedObjFormData.$policies$ = this._receivedObjOrigData.$policies$; |
| 732 |
})); |
744 |
})); |
| 733 |
})); |
745 |
})); |