diff --git a/Netdisco/lib/App/Netdisco/Web/Plugin/Report/IpInventory.pm b/Netdisco/lib/App/Netdisco/Web/Plugin/Report/IpInventory.pm index d8d7feb0..467a2f6a 100644 --- a/Netdisco/lib/App/Netdisco/Web/Plugin/Report/IpInventory.pm +++ b/Netdisco/lib/App/Netdisco/Web/Plugin/Report/IpInventory.pm @@ -42,9 +42,7 @@ get '/ajax/content/report/ipinventory' => require_login sub { $subnet = NetAddr::IP::Lite->new('0.0.0.0/32') if (! $subnet) or ($subnet->addr eq '0.0.0.0'); - my $age = param('age_on') || '0'; my $agenot = param('age_invert') || '0'; - my ( $start, $end ) = param('daterange') =~ /(\d+-\d+-\d+)/gmx; my $limit = param('limit') || 256; @@ -129,7 +127,7 @@ get '/ajax/content/report/ipinventory' => require_login sub { )->as_query; my $rs; - if ( $age && $start && $end ) { + if ( $start && $end ) { $start = $start . ' 00:00:00'; $end = $end . ' 23:59:59'; diff --git a/Netdisco/share/views/ajax/report/subnets.tt b/Netdisco/share/views/ajax/report/subnets.tt index 7b3b9c3c..3ba3c9d2 100644 --- a/Netdisco/share/views/ajax/report/subnets.tt +++ b/Netdisco/share/views/ajax/report/subnets.tt @@ -13,7 +13,7 @@ [% FOREACH row IN results.all %]