From 8b590098fbd78765f97d44f5500a967b4afdbbe1 Mon Sep 17 00:00:00 2001 From: Mark Wells Date: Fri, 15 Feb 2013 00:13:33 -0800 Subject: [PATCH] remember 477 report part 5 selection, #13057 --- httemplate/search/477.html | 5 +++++ httemplate/search/477partV.html | 4 ++-- httemplate/search/report_477.html | 4 +++- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/httemplate/search/477.html b/httemplate/search/477.html index 6f5fcdf3b..04764c1da 100755 --- a/httemplate/search/477.html +++ b/httemplate/search/477.html @@ -97,6 +97,11 @@ for(my $i=0; $i < scalar(@part2b_row_option); $i++) { &FS::Report::FCC_477::save_fcc477map("part2b_row_option_$i",$part2b_row_option[$i]); } +my $part5_report_option = $cgi->param('part5_report_option'); +if ( $part5_report_option ) { + FS::Report::FCC_477::save_fcc477map('part5_report_option', $part5_report_option); +} + my $url_mangler = sub { my $part = shift; my $url = $cgi->url('-path_info' => 1, '-full' => 1); diff --git a/httemplate/search/477partV.html b/httemplate/search/477partV.html index f83a7a0cb..2106a44d6 100755 --- a/httemplate/search/477partV.html +++ b/httemplate/search/477partV.html @@ -32,8 +32,8 @@ for ( qw(agentnum magic state) ) { } $search_hash{'country'} = 'US'; $search_hash{'classnum'} = [ $cgi->param('classnum') ]; -$search_hash{report_option} = $cgi->param('partv_report_option') - if $cgi->param('partv_report_option'); +$search_hash{report_option} = $cgi->param('part5_report_option') + if $cgi->param('part5_report_option'); my $sql_query = FS::cust_pkg->search( { %search_hash, 'fcc_line' => 1, diff --git a/httemplate/search/report_477.html b/httemplate/search/report_477.html index f593a94d8..b842b1f3f 100755 --- a/httemplate/search/report_477.html +++ b/httemplate/search/report_477.html @@ -231,7 +231,9 @@ 'table' => 'part_pkg_report_option', 'name_col' => 'name', 'hashref' => { 'disabled' => '' }, - 'element_name' => 'partv_report_option', + 'element_name' => 'part5_report_option', + 'curr_value' => + FS::Report::FCC_477::restore_fcc477map("part5_report_option"), ) %> -- 2.11.0