explicit no-op layout so that layout hook gets triggered which makes API work

This commit is contained in:
Oliver Gorwits
2021-10-19 08:59:42 +01:00
parent 8902efc6d3
commit feeebe04cb
34 changed files with 66 additions and 66 deletions

View File

@@ -39,7 +39,7 @@ get '/ajax/content/report/apradiochannelpower/data' => require_login sub {
get '/ajax/content/report/apradiochannelpower' => require_login sub {
if ( request->is_ajax ) {
template 'ajax/report/apradiochannelpower.tt', {}, { layout => undef };
template 'ajax/report/apradiochannelpower.tt', {}, { layout => 'noop' };
}
else {
my @results
@@ -50,7 +50,7 @@ get '/ajax/content/report/apradiochannelpower' => require_login sub {
header( 'Content-Type' => 'text/comma-separated-values' );
template 'ajax/report/apradiochannelpower_csv.tt',
{ results => \@results, }, { layout => undef };
{ results => \@results, }, { layout => 'noop' };
}
};