From 7ba097ec18e784d3adeaae4c14f7a87e402715ca Mon Sep 17 00:00:00 2001 From: Oliver Gorwits Date: Tue, 12 Oct 2021 08:57:31 +0100 Subject: [PATCH] #761 explicit null template layout for xhr/fetch snippets --- lib/App/Netdisco/Web/GenericReport.pm | 4 ++-- lib/App/Netdisco/Web/Plugin/Report/ApChannelDist.pm | 4 ++-- lib/App/Netdisco/Web/Plugin/Report/ApClients.pm | 4 ++-- lib/App/Netdisco/Web/Plugin/Report/ApRadioChannelPower.pm | 4 ++-- lib/App/Netdisco/Web/Plugin/Report/DeviceAddrNoDNS.pm | 4 ++-- lib/App/Netdisco/Web/Plugin/Report/DeviceByLocation.pm | 4 ++-- lib/App/Netdisco/Web/Plugin/Report/DeviceDnsMismatch.pm | 4 ++-- lib/App/Netdisco/Web/Plugin/Report/DevicePoeStatus.pm | 4 ++-- lib/App/Netdisco/Web/Plugin/Report/DuplexMismatch.pm | 4 ++-- lib/App/Netdisco/Web/Plugin/Report/HalfDuplex.pm | 4 ++-- lib/App/Netdisco/Web/Plugin/Report/IpInventory.pm | 4 ++-- lib/App/Netdisco/Web/Plugin/Report/NodeMultiIPs.pm | 4 ++-- lib/App/Netdisco/Web/Plugin/Report/NodesDiscovered.pm | 4 ++-- lib/App/Netdisco/Web/Plugin/Report/PortAdminDown.pm | 4 ++-- lib/App/Netdisco/Web/Plugin/Report/PortBlocking.pm | 4 ++-- lib/App/Netdisco/Web/Plugin/Report/PortMultiNodes.pm | 4 ++-- lib/App/Netdisco/Web/Plugin/Report/PortSsid.pm | 4 ++-- lib/App/Netdisco/Web/Plugin/Report/PortUtilization.pm | 4 ++-- lib/App/Netdisco/Web/Plugin/Report/PortVLANMismatch.pm | 4 ++-- lib/App/Netdisco/Web/Plugin/Report/SsidInventory.pm | 4 ++-- lib/App/Netdisco/Web/Plugin/Report/SubnetUtilization.pm | 4 ++-- lib/App/Netdisco/Web/Plugin/Report/VlanInventory.pm | 4 ++-- lib/App/Netdisco/Web/Plugin/Search/Device.pm | 2 +- lib/App/Netdisco/Web/Plugin/Search/Port.pm | 4 ++-- lib/App/Netdisco/Web/Plugin/Search/VLAN.pm | 4 ++-- 25 files changed, 49 insertions(+), 49 deletions(-) diff --git a/lib/App/Netdisco/Web/GenericReport.pm b/lib/App/Netdisco/Web/GenericReport.pm index d2d5bf7c..af543ceb 100644 --- a/lib/App/Netdisco/Web/GenericReport.pm +++ b/lib/App/Netdisco/Web/GenericReport.pm @@ -78,14 +78,14 @@ foreach my $report (@{setting('reports')}) { is_custom_report => true, column_options => \%column_config, headings => [map {$column_config{$_}->{displayname}} @column_order], - columns => [@column_order] }; + columns => [@column_order] }, { layout => undef }; } else { header( 'Content-Type' => 'text/comma-separated-values' ); template 'ajax/report/generic_report_csv.tt', { results => \@results, headings => [map {$column_config{$_}->{displayname}} @column_order], - columns => [@column_order] }; + columns => [@column_order] }, { layout => undef }; } }; } diff --git a/lib/App/Netdisco/Web/Plugin/Report/ApChannelDist.pm b/lib/App/Netdisco/Web/Plugin/Report/ApChannelDist.pm index 2e22f127..4b90afab 100644 --- a/lib/App/Netdisco/Web/Plugin/Report/ApChannelDist.pm +++ b/lib/App/Netdisco/Web/Plugin/Report/ApChannelDist.pm @@ -29,11 +29,11 @@ get '/ajax/content/report/apchanneldist' => require_login sub { if ( request->is_ajax ) { my $json = to_json( \@results ); - template 'ajax/report/apchanneldist.tt', { results => $json }; + template 'ajax/report/apchanneldist.tt', { results => $json }, { layout => undef }; } else { header( 'Content-Type' => 'text/comma-separated-values' ); - template 'ajax/report/apchanneldist_csv.tt', { results => \@results }; + template 'ajax/report/apchanneldist_csv.tt', { results => \@results }, { layout => undef }; } }; diff --git a/lib/App/Netdisco/Web/Plugin/Report/ApClients.pm b/lib/App/Netdisco/Web/Plugin/Report/ApClients.pm index fcfb874a..4b1ddcc8 100644 --- a/lib/App/Netdisco/Web/Plugin/Report/ApClients.pm +++ b/lib/App/Netdisco/Web/Plugin/Report/ApClients.pm @@ -38,12 +38,12 @@ get '/ajax/content/report/apclients' => require_login sub { if ( request->is_ajax ) { my $json = to_json( \@results ); - template 'ajax/report/apclients.tt', { results => $json }; + template 'ajax/report/apclients.tt', { results => $json }, { layout => undef }; } else { header( 'Content-Type' => 'text/comma-separated-values' ); template 'ajax/report/apclients_csv.tt', - { results => \@results }; + { results => \@results }, { layout => undef }; } }; diff --git a/lib/App/Netdisco/Web/Plugin/Report/ApRadioChannelPower.pm b/lib/App/Netdisco/Web/Plugin/Report/ApRadioChannelPower.pm index 1389e6d9..d0fa66b6 100644 --- a/lib/App/Netdisco/Web/Plugin/Report/ApRadioChannelPower.pm +++ b/lib/App/Netdisco/Web/Plugin/Report/ApRadioChannelPower.pm @@ -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'; + template 'ajax/report/apradiochannelpower.tt', {}, { layout => undef }; } 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, }; + { results => \@results, }, { layout => undef }; } }; diff --git a/lib/App/Netdisco/Web/Plugin/Report/DeviceAddrNoDNS.pm b/lib/App/Netdisco/Web/Plugin/Report/DeviceAddrNoDNS.pm index 73c4885a..80c9f941 100644 --- a/lib/App/Netdisco/Web/Plugin/Report/DeviceAddrNoDNS.pm +++ b/lib/App/Netdisco/Web/Plugin/Report/DeviceAddrNoDNS.pm @@ -29,12 +29,12 @@ get '/ajax/content/report/deviceaddrnodns' => require_login sub { if ( request->is_ajax ) { my $json = to_json (\@results); - template 'ajax/report/deviceaddrnodns.tt', { results => $json }; + template 'ajax/report/deviceaddrnodns.tt', { results => $json }, { layout => undef }; } else { header( 'Content-Type' => 'text/comma-separated-values' ); template 'ajax/report/deviceaddrnodns_csv.tt', - { results => \@results, }; + { results => \@results, }, { layout => undef }; } }; diff --git a/lib/App/Netdisco/Web/Plugin/Report/DeviceByLocation.pm b/lib/App/Netdisco/Web/Plugin/Report/DeviceByLocation.pm index ff03469a..e9148817 100644 --- a/lib/App/Netdisco/Web/Plugin/Report/DeviceByLocation.pm +++ b/lib/App/Netdisco/Web/Plugin/Report/DeviceByLocation.pm @@ -25,12 +25,12 @@ get '/ajax/content/report/devicebylocation' => require_login sub { if ( request->is_ajax ) { my $json = to_json( \@results ); - template 'ajax/report/devicebylocation.tt', { results => $json }; + template 'ajax/report/devicebylocation.tt', { results => $json }, { layout => undef }; } else { header( 'Content-Type' => 'text/comma-separated-values' ); template 'ajax/report/devicebylocation_csv.tt', - { results => \@results }; + { results => \@results }, { layout => undef }; } }; diff --git a/lib/App/Netdisco/Web/Plugin/Report/DeviceDnsMismatch.pm b/lib/App/Netdisco/Web/Plugin/Report/DeviceDnsMismatch.pm index 66bd2591..da8ed090 100644 --- a/lib/App/Netdisco/Web/Plugin/Report/DeviceDnsMismatch.pm +++ b/lib/App/Netdisco/Web/Plugin/Report/DeviceDnsMismatch.pm @@ -28,12 +28,12 @@ get '/ajax/content/report/devicednsmismatch' => require_login sub { if ( request->is_ajax ) { my $json = to_json( \@results ); - template 'ajax/report/devicednsmismatch.tt', { results => $json }; + template 'ajax/report/devicednsmismatch.tt', { results => $json }, { layout => undef }; } else { header( 'Content-Type' => 'text/comma-separated-values' ); template 'ajax/report/devicednsmismatch_csv.tt', - { results => \@results }; + { results => \@results }, { layout => undef }; } }; diff --git a/lib/App/Netdisco/Web/Plugin/Report/DevicePoeStatus.pm b/lib/App/Netdisco/Web/Plugin/Report/DevicePoeStatus.pm index 097ba532..3998da61 100644 --- a/lib/App/Netdisco/Web/Plugin/Report/DevicePoeStatus.pm +++ b/lib/App/Netdisco/Web/Plugin/Report/DevicePoeStatus.pm @@ -40,7 +40,7 @@ get '/ajax/content/report/devicepoestatus/data' => require_login sub { get '/ajax/content/report/devicepoestatus' => require_login sub { if ( request->is_ajax ) { - template 'ajax/report/devicepoestatus.tt'; + template 'ajax/report/devicepoestatus.tt', {}, { layout => undef }; } else { my @results @@ -51,7 +51,7 @@ get '/ajax/content/report/devicepoestatus' => require_login sub { header( 'Content-Type' => 'text/comma-separated-values' ); template 'ajax/report/devicepoestatus_csv.tt', - { results => \@results, }; + { results => \@results, }, { layout => undef }; } }; diff --git a/lib/App/Netdisco/Web/Plugin/Report/DuplexMismatch.pm b/lib/App/Netdisco/Web/Plugin/Report/DuplexMismatch.pm index 1d4d85ff..dc87792a 100644 --- a/lib/App/Netdisco/Web/Plugin/Report/DuplexMismatch.pm +++ b/lib/App/Netdisco/Web/Plugin/Report/DuplexMismatch.pm @@ -23,12 +23,12 @@ get '/ajax/content/report/duplexmismatch' => require_login sub { if ( request->is_ajax ) { my $json = to_json( \@results ); - template 'ajax/report/duplexmismatch.tt', { results => $json, }; + template 'ajax/report/duplexmismatch.tt', { results => $json, }, { layout => undef }; } else { header( 'Content-Type' => 'text/comma-separated-values' ); template 'ajax/report/duplexmismatch_csv.tt', - { results => \@results, }; + { results => \@results, }, { layout => undef }; } }; diff --git a/lib/App/Netdisco/Web/Plugin/Report/HalfDuplex.pm b/lib/App/Netdisco/Web/Plugin/Report/HalfDuplex.pm index f98856c3..7e24abdd 100644 --- a/lib/App/Netdisco/Web/Plugin/Report/HalfDuplex.pm +++ b/lib/App/Netdisco/Web/Plugin/Report/HalfDuplex.pm @@ -30,12 +30,12 @@ get '/ajax/content/report/halfduplex' => require_login sub { if ( request->is_ajax ) { my $json = to_json( \@results ); - template 'ajax/report/halfduplex.tt', { results => $json }; + template 'ajax/report/halfduplex.tt', { results => $json }, { layout => undef }; } else { header( 'Content-Type' => 'text/comma-separated-values' ); template 'ajax/report/halfduplex_csv.tt', - { results => \@results }; + { results => \@results }, { layout => undef }; } }; diff --git a/lib/App/Netdisco/Web/Plugin/Report/IpInventory.pm b/lib/App/Netdisco/Web/Plugin/Report/IpInventory.pm index 94292661..1b371cab 100644 --- a/lib/App/Netdisco/Web/Plugin/Report/IpInventory.pm +++ b/lib/App/Netdisco/Web/Plugin/Report/IpInventory.pm @@ -193,11 +193,11 @@ get '/ajax/content/report/ipinventory' => require_login sub { if ( request->is_ajax ) { my $json = to_json( \@results ); - template 'ajax/report/ipinventory.tt', { results => $json }; + template 'ajax/report/ipinventory.tt', { results => $json }, { layout => undef }; } else { header( 'Content-Type' => 'text/comma-separated-values' ); - template 'ajax/report/ipinventory_csv.tt', { results => \@results, }; + template 'ajax/report/ipinventory_csv.tt', { results => \@results, }, { layout => undef }; } }; diff --git a/lib/App/Netdisco/Web/Plugin/Report/NodeMultiIPs.pm b/lib/App/Netdisco/Web/Plugin/Report/NodeMultiIPs.pm index 94e54c46..c6900ccc 100644 --- a/lib/App/Netdisco/Web/Plugin/Report/NodeMultiIPs.pm +++ b/lib/App/Netdisco/Web/Plugin/Report/NodeMultiIPs.pm @@ -38,12 +38,12 @@ get '/ajax/content/report/nodemultiips' => require_login sub { if ( request->is_ajax ) { my $json = to_json( \@results ); - template 'ajax/report/nodemultiips.tt', { results => $json }; + template 'ajax/report/nodemultiips.tt', { results => $json }, { layout => undef }; } else { header( 'Content-Type' => 'text/comma-separated-values' ); template 'ajax/report/nodemultiips_csv.tt', - { results => \@results }; + { results => \@results }, { layout => undef }; } }; diff --git a/lib/App/Netdisco/Web/Plugin/Report/NodesDiscovered.pm b/lib/App/Netdisco/Web/Plugin/Report/NodesDiscovered.pm index 46a02483..f1d77a90 100644 --- a/lib/App/Netdisco/Web/Plugin/Report/NodesDiscovered.pm +++ b/lib/App/Netdisco/Web/Plugin/Report/NodesDiscovered.pm @@ -64,12 +64,12 @@ get '/ajax/content/report/nodesdiscovered' => require_login sub { if ( request->is_ajax ) { my $json = to_json( \@results ); - template 'ajax/report/nodesdiscovered.tt', { results => $json }; + template 'ajax/report/nodesdiscovered.tt', { results => $json }, { layout => undef }; } else { header( 'Content-Type' => 'text/comma-separated-values' ); template 'ajax/report/nodesdiscovered_csv.tt', - { results => \@results }; + { results => \@results }, { layout => undef }; } }; diff --git a/lib/App/Netdisco/Web/Plugin/Report/PortAdminDown.pm b/lib/App/Netdisco/Web/Plugin/Report/PortAdminDown.pm index 020c5998..41798dea 100644 --- a/lib/App/Netdisco/Web/Plugin/Report/PortAdminDown.pm +++ b/lib/App/Netdisco/Web/Plugin/Report/PortAdminDown.pm @@ -32,12 +32,12 @@ get '/ajax/content/report/portadmindown' => require_login sub { if ( request->is_ajax ) { my $json = to_json (\@results); - template 'ajax/report/portadmindown.tt', { results => $json }; + template 'ajax/report/portadmindown.tt', { results => $json }, { layout => undef }; } else { header( 'Content-Type' => 'text/comma-separated-values' ); template 'ajax/report/portadmindown_csv.tt', - { results => \@results, }; + { results => \@results, }, { layout => undef }; } }; diff --git a/lib/App/Netdisco/Web/Plugin/Report/PortBlocking.pm b/lib/App/Netdisco/Web/Plugin/Report/PortBlocking.pm index 7f44a73a..5efcb8d8 100644 --- a/lib/App/Netdisco/Web/Plugin/Report/PortBlocking.pm +++ b/lib/App/Netdisco/Web/Plugin/Report/PortBlocking.pm @@ -32,12 +32,12 @@ get '/ajax/content/report/portblocking' => require_login sub { if ( request->is_ajax ) { my $json = to_json (\@results); - template 'ajax/report/portblocking.tt', { results => $json }; + template 'ajax/report/portblocking.tt', { results => $json }, { layout => undef }; } else { header( 'Content-Type' => 'text/comma-separated-values' ); template 'ajax/report/portblocking_csv.tt', - { results => \@results, }; + { results => \@results, }, { layout => undef }; } }; diff --git a/lib/App/Netdisco/Web/Plugin/Report/PortMultiNodes.pm b/lib/App/Netdisco/Web/Plugin/Report/PortMultiNodes.pm index fd17266d..a7551b8a 100644 --- a/lib/App/Netdisco/Web/Plugin/Report/PortMultiNodes.pm +++ b/lib/App/Netdisco/Web/Plugin/Report/PortMultiNodes.pm @@ -46,12 +46,12 @@ get '/ajax/content/report/portmultinodes' => require_login sub { if ( request->is_ajax ) { my $json = to_json (\@results); - template 'ajax/report/portmultinodes.tt', { results => $json }; + template 'ajax/report/portmultinodes.tt', { results => $json }, { layout => undef }; } else { header( 'Content-Type' => 'text/comma-separated-values' ); template 'ajax/report/portmultinodes_csv.tt', - { results => \@results, }; + { results => \@results, }, { layout => undef }; } }; diff --git a/lib/App/Netdisco/Web/Plugin/Report/PortSsid.pm b/lib/App/Netdisco/Web/Plugin/Report/PortSsid.pm index 29bee987..66dcafca 100644 --- a/lib/App/Netdisco/Web/Plugin/Report/PortSsid.pm +++ b/lib/App/Netdisco/Web/Plugin/Report/PortSsid.pm @@ -71,12 +71,12 @@ get '/ajax/content/report/portssid' => require_login sub { if ( request->is_ajax ) { my $json = to_json( \@results ); template 'ajax/report/portssid.tt', - { results => $json, opt => $ssid }; + { results => $json, opt => $ssid }, { layout => undef }; } else { header( 'Content-Type' => 'text/comma-separated-values' ); template 'ajax/report/portssid_csv.tt', - { results => \@results, opt => $ssid }; + { results => \@results, opt => $ssid }, { layout => undef }; } }; diff --git a/lib/App/Netdisco/Web/Plugin/Report/PortUtilization.pm b/lib/App/Netdisco/Web/Plugin/Report/PortUtilization.pm index 432e5539..9402c6e3 100644 --- a/lib/App/Netdisco/Web/Plugin/Report/PortUtilization.pm +++ b/lib/App/Netdisco/Web/Plugin/Report/PortUtilization.pm @@ -37,11 +37,11 @@ get '/ajax/content/report/portutilization' => require_login sub { if (request->is_ajax) { my $json = to_json (\@results); - template 'ajax/report/portutilization.tt', { results => $json }; + template 'ajax/report/portutilization.tt', { results => $json }, { layout => undef }; } else { header( 'Content-Type' => 'text/comma-separated-values' ); - template 'ajax/report/portutilization_csv.tt', { results => \@results, }; + template 'ajax/report/portutilization_csv.tt', { results => \@results, }, { layout => undef }; } }; diff --git a/lib/App/Netdisco/Web/Plugin/Report/PortVLANMismatch.pm b/lib/App/Netdisco/Web/Plugin/Report/PortVLANMismatch.pm index 0286d140..0b2729ec 100644 --- a/lib/App/Netdisco/Web/Plugin/Report/PortVLANMismatch.pm +++ b/lib/App/Netdisco/Web/Plugin/Report/PortVLANMismatch.pm @@ -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 }; + template 'ajax/report/portvlanmismatch.tt', { results => $json }, { layout => undef }; } else { header( 'Content-Type' => 'text/comma-separated-values' ); - template 'ajax/report/portvlanmismatch_csv.tt', { results => \@results, }; + template 'ajax/report/portvlanmismatch_csv.tt', { results => \@results, }, { layout => undef }; } }; diff --git a/lib/App/Netdisco/Web/Plugin/Report/SsidInventory.pm b/lib/App/Netdisco/Web/Plugin/Report/SsidInventory.pm index ca45199d..29e44cdd 100644 --- a/lib/App/Netdisco/Web/Plugin/Report/SsidInventory.pm +++ b/lib/App/Netdisco/Web/Plugin/Report/SsidInventory.pm @@ -23,11 +23,11 @@ get '/ajax/content/report/ssidinventory' => require_login sub { if ( request->is_ajax ) { my $json = to_json( \@results ); - template 'ajax/report/portssid.tt', { results => $json }; + template 'ajax/report/portssid.tt', { results => $json }, { layout => undef }; } else { header( 'Content-Type' => 'text/comma-separated-values' ); - template 'ajax/report/portssid_csv.tt', { results => \@results }; + template 'ajax/report/portssid_csv.tt', { results => \@results }, { layout => undef }; } }; diff --git a/lib/App/Netdisco/Web/Plugin/Report/SubnetUtilization.pm b/lib/App/Netdisco/Web/Plugin/Report/SubnetUtilization.pm index 857f1ad9..57f40750 100644 --- a/lib/App/Netdisco/Web/Plugin/Report/SubnetUtilization.pm +++ b/lib/App/Netdisco/Web/Plugin/Report/SubnetUtilization.pm @@ -48,11 +48,11 @@ get '/ajax/content/report/subnets' => require_login sub { return unless scalar @results; if ( request->is_ajax ) { - template 'ajax/report/subnets.tt', { results => \@results }; + template 'ajax/report/subnets.tt', { results => \@results }, { layout => undef }; } else { header( 'Content-Type' => 'text/comma-separated-values' ); - template 'ajax/report/subnets_csv.tt', { results => \@results }; + template 'ajax/report/subnets_csv.tt', { results => \@results }, { layout => undef }; } }; diff --git a/lib/App/Netdisco/Web/Plugin/Report/VlanInventory.pm b/lib/App/Netdisco/Web/Plugin/Report/VlanInventory.pm index 41975969..1cc99f4d 100644 --- a/lib/App/Netdisco/Web/Plugin/Report/VlanInventory.pm +++ b/lib/App/Netdisco/Web/Plugin/Report/VlanInventory.pm @@ -37,11 +37,11 @@ get '/ajax/content/report/vlaninventory' => require_login sub { if ( request->is_ajax ) { my $json = to_json (\@results); - template 'ajax/report/vlaninventory.tt', { results => $json }; + template 'ajax/report/vlaninventory.tt', { results => $json }, { layout => undef }; } else { header( 'Content-Type' => 'text/comma-separated-values' ); - template 'ajax/report/vlaninventory_csv.tt', { results => \@results }; + template 'ajax/report/vlaninventory_csv.tt', { results => \@results }, { layout => undef }; } }; diff --git a/lib/App/Netdisco/Web/Plugin/Search/Device.pm b/lib/App/Netdisco/Web/Plugin/Search/Device.pm index 8df3d732..75eeefbe 100644 --- a/lib/App/Netdisco/Web/Plugin/Search/Device.pm +++ b/lib/App/Netdisco/Web/Plugin/Search/Device.pm @@ -91,7 +91,7 @@ get '/ajax/content/search/device' => require_login sub { } else { header( 'Content-Type' => 'text/comma-separated-values' ); - template 'ajax/search/device_csv.tt', { results => \@results, }; + template 'ajax/search/device_csv.tt', { results => \@results, }, { layout => undef }; } }; diff --git a/lib/App/Netdisco/Web/Plugin/Search/Port.pm b/lib/App/Netdisco/Web/Plugin/Search/Port.pm index ffdfb7de..60210adb 100644 --- a/lib/App/Netdisco/Web/Plugin/Search/Port.pm +++ b/lib/App/Netdisco/Web/Plugin/Search/Port.pm @@ -100,11 +100,11 @@ get '/ajax/content/search/port' => require_login sub { if ( request->is_ajax ) { my $json = to_json( \@results ); - template 'ajax/search/port.tt', { results => $json }; + template 'ajax/search/port.tt', { results => $json }, { layout => undef }; } else { header( 'Content-Type' => 'text/comma-separated-values' ); - template 'ajax/search/port_csv.tt', { results => \@results }; + template 'ajax/search/port_csv.tt', { results => \@results }, { layout => undef }; } }; diff --git a/lib/App/Netdisco/Web/Plugin/Search/VLAN.pm b/lib/App/Netdisco/Web/Plugin/Search/VLAN.pm index 1fa520b5..8e97f90c 100644 --- a/lib/App/Netdisco/Web/Plugin/Search/VLAN.pm +++ b/lib/App/Netdisco/Web/Plugin/Search/VLAN.pm @@ -40,11 +40,11 @@ get '/ajax/content/search/vlan' => require_login sub { if (request->is_ajax) { my $json = to_json( \@results ); - template 'ajax/search/vlan.tt', { results => $json }; + template 'ajax/search/vlan.tt', { results => $json }, { layout => undef }; } else { header( 'Content-Type' => 'text/comma-separated-values' ); - template 'ajax/search/vlan_csv.tt', { results => \@results }; + template 'ajax/search/vlan_csv.tt', { results => \@results }, { layout => undef }; } };