summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorivan <ivan>2011-08-12 21:57:44 +0000
committerivan <ivan>2011-08-12 21:57:44 +0000
commita7cc649a58a3d3a347817e8c015b37eec908a0e5 (patch)
tree25964520d1238aebb764f367590bcb50bed1c8df
parentd3e18527e2fa36b7b7fe7b8b0a5906caae3cb8de (diff)
fix census geocoding, RT#14060
-rw-r--r--httemplate/edit/cust_main/bottomfixup.js2
-rw-r--r--httemplate/misc/xmlhttp-cust_main-censustract.html5
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},