From 4f8270fe418d849b00af63a49ade623e8da08ac4 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Thu, 13 Feb 2014 17:29:44 +0000 Subject: [PATCH] fix javascript error if [More...] is clicked in CRM view of contact --- addressbook/js/app.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addressbook/js/app.js b/addressbook/js/app.js index 64972d5f4c..c8f2d26350 100644 --- a/addressbook/js/app.js +++ b/addressbook/js/app.js @@ -208,11 +208,11 @@ app.classes.addressbook = AppJS.extend( { var src = this.et2.getWidgetById(name); var dst = this.et2.getWidgetById(what[name]); - if (src && dst) dst.set_value(src.get_value()); + if (src && dst) dst.set_value(src.get_value ? src.get_value() : src.value); } // change tel_prefer according to what var tel_prefer = this.et2.getWidgetById('tel_prefer'); - if (tel_prefer && typeof what[tel_prefer.get_value()] != 'undefined') + if (tel_prefer && tel_prefer.get_value && typeof what[tel_prefer.get_value()] != 'undefined') tel_prefer.set_value(what[tel_prefer.get_value()]); },