Merge pull request #3482 from rohitwaghchaure/deleted_document_issue
[Fix] System manager not able to restore the deleted document
This commit is contained in:
commit
c044f9034c
2 changed files with 2 additions and 2 deletions
|
|
@ -13,7 +13,7 @@ frappe.ui.form.on('Deleted Document', {
|
|||
method: 'frappe.core.doctype.deleted_document.deleted_document.restore',
|
||||
args: {name: frm.doc.name},
|
||||
callback: function(r) {
|
||||
//
|
||||
frm.reload_doc();
|
||||
}
|
||||
});
|
||||
});
|
||||
|
|
|
|||
|
|
@ -23,6 +23,6 @@ def restore(name):
|
|||
|
||||
deleted.new_name = doc.name
|
||||
deleted.restored = 1
|
||||
deleted.save()
|
||||
deleted.db_update()
|
||||
|
||||
frappe.msgprint('Document Restored')
|
||||
Loading…
Add table
Reference in a new issue