[fix]syntax error on file list (#3559)

* [fix]syntax error on file list

* [fix]Linked with file bug
This commit is contained in:
Vishal Dhayagude 2017-06-25 10:58:27 +05:30 committed by Rushabh Mehta
parent 7074d0cfe1
commit 42100a15bc
2 changed files with 6 additions and 4 deletions

View file

@ -235,5 +235,5 @@ frappe.listview_settings['File'] = {
.appendTo(doclist.breadcrumb);
}
});
},
}
};

View file

@ -103,9 +103,11 @@ frappe.ui.form.LinkedWith = class LinkedWith {
var me = this;
let links = null;
links =
Object.keys(this.frm.__linked_doctypes)
.filter(frappe.model.can_get_report);
if (this.frm.__linked_doctypes) {
links =
Object.keys(this.frm.__linked_doctypes)
.filter(frappe.model.can_get_report);
}
let flag;
if(!links) {