浏览代码

Merge pull request #4063 from achillesrasquinha/develop

Fixed Image URL render to container
version-14
Rushabh Mehta 7 年前
committed by GitHub
父节点
当前提交
9f1caa100e
共有 1 个文件被更改,包括 11 次插入1 次删除
  1. +11
    -1
      frappe/public/js/frappe/form/controls/attach.js

+ 11
- 1
frappe/public/js/frappe/form/controls/attach.js 查看文件

@@ -169,7 +169,17 @@ frappe.ui.form.ControlAttach = frappe.ui.form.ControlData.extend({
if(this.frm) {
return this.value;
} else {
return this.fileobj ? (this.fileobj.filename + "," + this.dataurl) : null;
if ( this.fileobj ) {
if ( this.fileobj.file_url ) {
return this.fileobj.file_url;
} else if ( this.fileobj.filename ) {
var dataURI = this.fileobj.filename + ',' + this.dataurl;

return dataURI;
}
}

return null;
}
},



正在加载...
取消
保存