mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
MDL-75311 reportbuilder: Fix error when send report schedule
This commit is contained in:
parent
4ce642e8ba
commit
335e097125
1 changed files with 3 additions and 0 deletions
|
@ -151,6 +151,9 @@ class schedule {
|
|||
* @return stored_file
|
||||
*/
|
||||
public static function get_schedule_report_file(model $schedule): stored_file {
|
||||
global $CFG;
|
||||
require_once("{$CFG->libdir}/filelib.php");
|
||||
|
||||
$table = custom_report_table_view::create($schedule->get('reportid'));
|
||||
|
||||
$table->setup();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue