[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:
@@ -2235,7 +2235,7 @@ instance.web.list.Column = instance.web.Class.extend({
|
|||||||
}
|
}
|
||||||
if (attrs.invisible) { return ''; }
|
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
|
return options.value_if_empty === undefined
|
||||||
? ''
|
? ''
|
||||||
: options.value_if_empty;
|
: options.value_if_empty;
|
||||||
|
|||||||
Reference in New Issue
Block a user