Official Support Area, Q&As, Discussions, Suggestions and Bug reports.
Forum's Guidelines
Packages used: DataGrid / DataTables Morris
Template code inherited by all pages <head> ... <link rel="stylesheet" type="text/css" href="https://domain.tld/assets/plugins/bootstrap/css/bootstrap.css"> <link rel="stylesheet" type="text/css" href="https://domain.tld/assets/plugins/datatables/datatables.min.css"> <script src="https://domain.tld/assets/js/jquery-2.2.4.min.js"></script> <script src="https://domain.tld/assets/plugins/bootstrap/js/bootstrap.js"></script> <script src="https://domain.tld/assets/plugins/datatables/datatables.min.js"></script> ... </head>
Code generated by the DataGrid / Morris packages <body> ... <script type="text/javascript" src="/vendor/koolreport/packages/datagrid/DataTables/datatables.min.js"></script> <link type="text/css" rel="stylesheet" href="/vendor/koolreport/packages/datagrid/DataTables/dataTables.min.css"> <script type="text/javascript" src="/vendor/koolreport/clients/raphael/raphael.min.js"></script> <script type="text/javascript" src="/vendor/koolreport/clients/jquery/jquery.min.js"></script> <script type="text/javascript" src="/vendor/koolreport/packages/morris_chart/assets/morris.min.js"></script> <link type="text/css" rel="stylesheet" href="/vendor/koolreport/packages/morris_chart/assets/morris.css"> ... </body>
This causes JavaScript errors.
I think it is because of jQuery is registered twice with different version. You may go to our code "DataTables.php" and "Morris.php" and comment out the line of jQuery register
//$this->getReport()->getResourceManager()->addScriptFileOnBegin($jqueryPublicUrl."/jquery.min.js");
Let KoolReport help you to make great reports. It's free & open-source released under MIT license.
Download KoolReport View demo