[FIX] wiki: don't call into the wiki formatter library if there's no value in the field

lp bug: https://launchpad.net/bugs/927653 fixed

bzr revid: xmo@openerp.com-20120207115517-tu05k67iy5dochck
This commit is contained in:
Xavier Morel 2012-02-07 12:55:17 +01:00
parent a68d24511c
commit e966b19fa4
1 changed files with 1 additions and 1 deletions

View File

@ -6,7 +6,7 @@ openerp.wiki = function (openerp) {
openerp.wiki = {};
openerp.wiki.FieldWikiReadonly = openerp.web.page.FieldCharReadonly.extend({
set_value: function (value) {
var show_value = wiky.process(value);
var show_value = wiky.process(value || '');
this.$element.find('div').html(show_value);
return show_value;
}