[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
2015-01-29 16:06:22 +01:00
committed by Xavier Morel
parent 4b756c599d
commit 54e75b0286
+1 -1
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;