Skip to content

Commit

Permalink
Merge pull request #7429 from ehuelsmann/fix/master/send-aging-report…
Browse files Browse the repository at this point in the history
…-error

Add 'callback' parameter to single e-mail aging report
  • Loading branch information
ehuelsmann committed May 28, 2023
2 parents 6370e15 + 0e896be commit 435a380
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/LedgerSMB/Scripts/report_aging.pm
Expand Up @@ -122,9 +122,10 @@ sub _render_statement_batch {
my $results = $wf->context->param( 'results' );
if (scalar($results->@*) == 1) {
my ($result) = $results->@*;
my $callback = 'callback=reports.pl%3Faction%3Dstart_report%26report_name%3Daging%26module_name%3Dgl%26entity_class%3D2';

return [ HTTP_SEE_OTHER,
[ Location => 'email.pl?action=render&id=' . $result->{id} ],
[ Location => 'email.pl?action=render&' . $callback . '&id=' . $result->{id} ],
[ '' ] ];
}

Expand Down

0 comments on commit 435a380

Please sign in to comment.