diff options
author | ivan <ivan> | 2011-08-12 21:57:42 +0000 |
---|---|---|
committer | ivan <ivan> | 2011-08-12 21:57:42 +0000 |
commit | d53fe51e0d705f5923a0be114653492160028ddc (patch) | |
tree | 7b71117fca9d190fc025b205c828330264b5a8d7 /httemplate | |
parent | ca393920d3659319c9ab37848b33a00a7b28b7be (diff) |
fix census geocoding, RT#14060
Diffstat (limited to 'httemplate')
-rw-r--r-- | httemplate/edit/cust_main/bottomfixup.js | 2 | ||||
-rw-r--r-- | 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}, |