From a7cc649a58a3d3a347817e8c015b37eec908a0e5 Mon Sep 17 00:00:00 2001 From: ivan Date: Fri, 12 Aug 2011 21:57:44 +0000 Subject: [PATCH] fix census geocoding, RT#14060 --- httemplate/edit/cust_main/bottomfixup.js | 2 +- httemplate/misc/xmlhttp-cust_main-censustract.html | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/httemplate/edit/cust_main/bottomfixup.js b/httemplate/edit/cust_main/bottomfixup.js index 24156f792..2f7839a32 100644 --- a/httemplate/edit/cust_main/bottomfixup.js +++ b/httemplate/edit/cust_main/bottomfixup.js @@ -37,7 +37,7 @@ function post_geocode() { var cf = document.CustomerForm; var state_el = cf.elements['ship_state']; var census_data = new Array( - 'year', <% $conf->config('census_year') || '2009' %>, + 'year', <% $conf->config('census_year') || '2011' %>, 'address', cf.elements['ship_address1'].value, 'city', cf.elements['ship_city'].value, 'state', state_el.options[ state_el.selectedIndex ].value, diff --git a/httemplate/misc/xmlhttp-cust_main-censustract.html b/httemplate/misc/xmlhttp-cust_main-censustract.html index 3ba68afd4..97b7f5a4c 100644 --- a/httemplate/misc/xmlhttp-cust_main-censustract.html +++ b/httemplate/misc/xmlhttp-cust_main-censustract.html @@ -55,13 +55,14 @@ if ( $sub eq 'censustract' ) { my($zip5, $zip4) = split('-',$arg{zip}); + $arg{year} ||= '2011'; #ugh workaround a mess at ffiec - $arg{year} = " $arg{year}" unless $arg{year} = "2010"; + $arg{year} = " $arg{year}" if $arg{year} ne '2011'; my @ffiec_args = ( __VIEWSTATE => $viewstate, __EVENTVALIDATION => $eventvalidation, ddlbYear => $arg{year}, - ddlbYear => ' 2009', + ddlbYear => '2011', #' 2009', txtAddress => $arg{address}, txtCity => $arg{city}, ddlbState => $arg{state}, -- 2.11.0