standardize variable names
This commit is contained in:
@@ -27,8 +27,8 @@ get '/ajax/content/report/deviceaddrnodns' => require_login sub {
|
||||
return unless scalar @results;
|
||||
|
||||
if ( request->is_ajax ) {
|
||||
my $results = to_json (\@results);
|
||||
template 'ajax/report/deviceaddrnodns.tt', { results => $results, },
|
||||
my $json = to_json (\@results);
|
||||
template 'ajax/report/deviceaddrnodns.tt', { results => $json },
|
||||
{ layout => undef };
|
||||
}
|
||||
else {
|
||||
|
||||
@@ -23,8 +23,8 @@ get '/ajax/content/report/devicebylocation' => require_login sub {
|
||||
return unless scalar @results;
|
||||
|
||||
if ( request->is_ajax ) {
|
||||
my $results = to_json( \@results );
|
||||
template 'ajax/report/devicebylocation.tt', { results => $results },
|
||||
my $json = to_json( \@results );
|
||||
template 'ajax/report/devicebylocation.tt', { results => $json },
|
||||
{ layout => undef };
|
||||
}
|
||||
else {
|
||||
|
||||
@@ -26,8 +26,8 @@ get '/ajax/content/report/devicednsmismatch' => require_login sub {
|
||||
return unless scalar @results;
|
||||
|
||||
if ( request->is_ajax ) {
|
||||
my $results = to_json( \@results );
|
||||
template 'ajax/report/devicednsmismatch.tt', { results => $results },
|
||||
my $json = to_json( \@results );
|
||||
template 'ajax/report/devicednsmismatch.tt', { results => $json },
|
||||
{ layout => undef };
|
||||
}
|
||||
else {
|
||||
|
||||
@@ -100,10 +100,11 @@ get '/ajax/content/report/moduleinventory' => require_login sub {
|
||||
}
|
||||
|
||||
return unless scalar @results;
|
||||
|
||||
if ( request->is_ajax ) {
|
||||
my $results = to_json (\@results);
|
||||
my $json = to_json (\@results);
|
||||
template 'ajax/report/moduleinventory.tt',
|
||||
{ results => $results, opt => $has_opt },
|
||||
{ results => $json, opt => $has_opt },
|
||||
{ layout => undef };
|
||||
}
|
||||
else {
|
||||
|
||||
@@ -30,8 +30,8 @@ get '/ajax/content/report/portadmindown' => require_login sub {
|
||||
return unless scalar @results;
|
||||
|
||||
if ( request->is_ajax ) {
|
||||
my $results = to_json (\@results);
|
||||
template 'ajax/report/portadmindown.tt', { results => $results, },
|
||||
my $json = to_json (\@results);
|
||||
template 'ajax/report/portadmindown.tt', { results => $json },
|
||||
{ layout => undef };
|
||||
}
|
||||
else {
|
||||
|
||||
@@ -30,8 +30,8 @@ get '/ajax/content/report/portblocking' => require_login sub {
|
||||
return unless scalar @results;
|
||||
|
||||
if ( request->is_ajax ) {
|
||||
my $results = to_json (\@results);
|
||||
template 'ajax/report/portblocking.tt', { results => $results, },
|
||||
my $json = to_json (\@results);
|
||||
template 'ajax/report/portblocking.tt', { results => $json },
|
||||
{ layout => undef };
|
||||
}
|
||||
else {
|
||||
|
||||
@@ -36,8 +36,8 @@ get '/ajax/content/report/portmultinodes' => require_login sub {
|
||||
return unless scalar @results;
|
||||
|
||||
if ( request->is_ajax ) {
|
||||
my $results = to_json (\@results);
|
||||
template 'ajax/report/portmultinodes.tt', { results => $results, },
|
||||
my $json = to_json (\@results);
|
||||
template 'ajax/report/portmultinodes.tt', { results => $json },
|
||||
{ layout => undef };
|
||||
}
|
||||
else {
|
||||
|
||||
@@ -19,8 +19,8 @@ get '/ajax/content/report/portutilization' => require_login sub {
|
||||
my @results = schema('netdisco')->resultset('Virtual::PortUtilization')->hri->all;
|
||||
|
||||
if (request->is_ajax) {
|
||||
my $results = to_json (\@results);
|
||||
template 'ajax/report/portutilization.tt', { results => $results, },
|
||||
my $json = to_json (\@results);
|
||||
template 'ajax/report/portutilization.tt', { results => $json },
|
||||
{ layout => undef };
|
||||
}
|
||||
else {
|
||||
|
||||
Reference in New Issue
Block a user