From 9925a640ebd475bf260b4d9e065b3f01e929e20a Mon Sep 17 00:00:00 2001 From: ivan Date: Mon, 9 Feb 2009 11:45:19 +0000 Subject: [PATCH] pull out the data for address fields too! RT#4583 --- FS/FS/UI/Web.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/FS/FS/UI/Web.pm b/FS/FS/UI/Web.pm index 6386f9187..3c52ca547 100644 --- a/FS/FS/UI/Web.pm +++ b/FS/FS/UI/Web.pm @@ -332,9 +332,11 @@ sub cust_sql_fields { cust_header(@_); #inefficientish, but tiny lists and only run once per page + + my @add_fields = qw( address1 address2 city state zip daytime night fax ); push @fields, grep { my $field = $_; grep { $_ eq $field } @cust_fields } - qw( address1 address2 city state zip daytime night fax payby ); + ( @add_fields, ( map "ship_$_", @add_fields ), 'payby' ); my @extra_fields = (); if (grep { $_ eq 'current_balance' } @cust_fields) { -- 2.11.0