解决添加客户端集合属性值元素时,未设置的BLOB属性值保存时表格中显示“BLOB”标签的BUG;

This commit is contained in:
datagear 2019-02-12 14:11:32 +08:00
parent a2ae57763f
commit a88c25085f
1 changed files with 6 additions and 1 deletions

View File

@ -845,7 +845,12 @@
propertyWidget.getValue = function()
{
if(options.filePropertyReturnShowableValue)
return $.model.toShowableValue($(this.fileInputHidden).val(), options.filePropertyLabelValue);
{
var value = $(this.fileInputHidden).val();
var labelValue = (value ? options.filePropertyLabelValue : "");
return $.model.toShowableValue(value, labelValue);
}
else
return $(this.fileInputHidden).val();
};