on amend, retain the existing attachments
This commit is contained in:
parent
562a71f153
commit
730c64abc4
1 changed files with 1 additions and 1 deletions
|
|
@ -962,7 +962,7 @@ _f.Frm.prototype.copy_doc = function(onload, from_amend) {
|
|||
var newdoc = LocalDB.copy(this.doctype, dn, from_amend);
|
||||
|
||||
// do not copy attachments
|
||||
if(this.meta.allow_attach && newdoc.file_list)
|
||||
if(this.meta.allow_attach && newdoc.file_list && !from_amend)
|
||||
newdoc.file_list = null;
|
||||
|
||||
// copy chidren
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue