Add FRU filter option to Module Inventory Report
This commit is contained in:
@@ -17,6 +17,14 @@ get '/report/*' => require_login sub {
|
||||
elsif ( $tag eq 'moduleinventory' ) {
|
||||
$class_list = [ schema('netdisco')->resultset('DeviceModule')
|
||||
->get_distinct_col('class') ];
|
||||
|
||||
# this is a bit fragile... three params currently
|
||||
if (3 == scalar keys params()) {
|
||||
foreach my $col ( @{ var('module_options') } ) {
|
||||
next unless $col->{default} eq 'on';
|
||||
params->{ $col->{name} } = 'checked';
|
||||
}
|
||||
}
|
||||
}
|
||||
elsif ( $tag eq 'portssid' ) {
|
||||
$ssid_list = [ schema('netdisco')->resultset('DevicePortSsid')
|
||||
|
||||
Reference in New Issue
Block a user