[FIX] Empty binary column download error

In case of an empty inline column, a Download link inviting the user to
click would still be rendered (erroring out if the user eventually
clicked on it)

fixes #3684
This commit is contained in:
kevin wang 2014-11-17 16:50:16 +08:00 committed by Xavier Morel
parent 4b756c599d
commit 54e75b0286
1 changed files with 1 additions and 1 deletions

View File

@ -2235,7 +2235,7 @@ instance.web.list.Column = instance.web.Class.extend({
}
if (attrs.invisible) { return ''; }
if (!row_data[this.id]) {
if (!(row_data[this.id] && row_data[this.id].value)) {
return options.value_if_empty === undefined
? ''
: options.value_if_empty;