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

@@ -21,11 +21,11 @@ get '/ajax/content/report/portvlanmismatch' => require_login sub {
if (request->is_ajax) {
my $json = to_json (\@results);
template 'ajax/report/portvlanmismatch.tt', { results => $json }, { layout => undef };
template 'ajax/report/portvlanmismatch.tt', { results => $json }, { layout => 'noop' };
}
else {
header( 'Content-Type' => 'text/comma-separated-values' );
template 'ajax/report/portvlanmismatch_csv.tt', { results => \@results, }, { layout => undef };
template 'ajax/report/portvlanmismatch_csv.tt', { results => \@results, }, { layout => 'noop' };
}
};