From ec92d42e321d07003bd530f6afd165630b769b35 Mon Sep 17 00:00:00 2001 From: niv-openerp Date: Wed, 27 Jun 2012 17:29:22 +0200 Subject: [PATCH] [FIX] email and url display 'false' bzr revid: nicolas.vanhoren@openerp.com-20120627152922-x1wp96wcu0zbdqyk --- addons/web/static/src/js/view_form.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/web/static/src/js/view_form.js b/addons/web/static/src/js/view_form.js index 5348550a7e0..1941e48affd 100644 --- a/addons/web/static/src/js/view_form.js +++ b/addons/web/static/src/js/view_form.js @@ -2003,7 +2003,7 @@ instance.web.form.FieldEmail = instance.web.form.FieldChar.extend({ } else { this.$element.find('a') .attr('href', 'mailto:' + this.get('value')) - .text(this.get('value')); + .text(this.get('value') || ''); } }, on_button_clicked: function() { @@ -2032,7 +2032,7 @@ instance.web.form.FieldUrl = instance.web.form.FieldChar.extend({ if (!s) { tmp = "http://" + this.get('value'); } - this.$element.find('a').attr('href', tmp).text(tmp); + this.$element.find('a').attr('href', tmp).text(this.get('value') ? tmp : ''); } }, on_button_clicked: function() {