projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
217630a
)
pull out the data for address fields too! RT#4583
author
ivan
<ivan>
Mon, 9 Feb 2009 11:45:19 +0000
(11:45 +0000)
committer
ivan
<ivan>
Mon, 9 Feb 2009 11:45:19 +0000
(11:45 +0000)
FS/FS/UI/Web.pm
patch
|
blob
|
history
diff --git
a/FS/FS/UI/Web.pm
b/FS/FS/UI/Web.pm
index
6386f91
..
3c52ca5
100644
(file)
--- 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
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 }
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) {
my @extra_fields = ();
if (grep { $_ eq 'current_balance' } @cust_fields) {