Merge pull request #1860 from nabinhait/report_url

URL of the reports from list sidebar
This commit is contained in:
Rushabh Mehta 2016-07-08 10:44:56 +05:30 committed by GitHub
commit 10e1921ccc

View file

@ -47,7 +47,7 @@ frappe.views.ListSidebar = Class.extend({
$.each(reports, function(name, r) {
if(!r.ref_doctype || r.ref_doctype==me.doctype) {
var report_type = r.report_type==='Report Builder'
? 'Report' : 'query-report';
? 'Report/' + r.ref_doctype : 'query-report';
var route = r.route || report_type + '/' + r.name;
if(added.indexOf(route)===-1) {