[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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user