partial fix for addressbook CRM view does not propagate prefered telephone number to phone popup, set_value() on et2_radiobox_ro is NOT working

This commit is contained in:
Ralf Becker 2014-02-13 17:51:02 +00:00
parent 4f8270fe41
commit c00e79af78
2 changed files with 6 additions and 2 deletions

View File

@ -212,8 +212,11 @@ app.classes.addressbook = AppJS.extend(
}
// change tel_prefer according to what
var tel_prefer = this.et2.getWidgetById('tel_prefer');
if (tel_prefer && tel_prefer.get_value && typeof what[tel_prefer.get_value()] != 'undefined')
tel_prefer.set_value(what[tel_prefer.get_value()]);
if (tel_prefer)
{
var val = tel_prefer.get_value ? tel_prefer.get_value() : tel_prefer.value;
if (typeof what[val] != 'undefined') tel_prefer.set_value(what[val]);
}
},
/**

View File

@ -192,6 +192,7 @@ var et2_radiobox_ro = et2_valueWidget.extend([et2_IDetachedDOM],
* @param {string} _value
*/
set_value: function(_value) {
this.value = _value;
if(_value == this.options.set_value) {
this.span.text(this.options.ro_true);
} else {