my $search = { folder => $folderId };
my $query = [
{ folder => $folderId },
- { order_by => { rs => 'run_time DESC' } }
+ {
+ order_by => { rs => 'run_time DESC' } ,
+ flesh => 1,
+ flesh_fields => { rs => ['report'] }
+ }
];
$query->[1]->{limit} = $limit if $limit;
oilsRptFetchUser(sched.runner(),
function(user) {
sched.runner(user);
- oilsRptFetchReport(sched.report(),
- function(report) {
- sched.report(report);
- oilsRptFetchTemplate(report.template(),
- function(template) {
- report.template(template);
- obj.fleshSchedules(list, ++idx);
- }
- );
+ oilsRptFetchTemplate(sched.report().template(),
+ function(template) {
+ sched.report().template(template);
+ obj.fleshSchedules(list, ++idx);
}
);
}