Merge pull request #20610 from pps190/report-view-dt

This commit is contained in:
Suraj Shetty 2023-04-13 14:56:00 +05:30 committed by GitHub
commit 8a0b7e2c79
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2,6 +2,9 @@
// MIT License. See license.txt
import DataTable from "frappe-datatable";
// Expose DataTable globally to allow customizations.
window.DataTable = DataTable;
frappe.provide("frappe.widget.utils");
frappe.provide("frappe.views");
frappe.provide("frappe.query_reports");
@ -933,7 +936,7 @@ frappe.views.QueryReport = class QueryReport extends frappe.views.BaseList {
if (this.report_settings.get_datatable_options) {
datatable_options = this.report_settings.get_datatable_options(datatable_options);
}
this.datatable = new DataTable(this.$report[0], datatable_options);
this.datatable = new window.DataTable(this.$report[0], datatable_options);
}
if (typeof this.report_settings.initial_depth == "number") {