projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
altered FS::UI::Web::cust_sort_fields() and cust_sql_fields() so that ->param('cust_f...
[freeside.git]
/
FS
/
FS
/
UI
/
Web.pm
diff --git
a/FS/FS/UI/Web.pm
b/FS/FS/UI/Web.pm
index
5fcd522
..
6161706
100644
(file)
--- a/
FS/FS/UI/Web.pm
+++ b/
FS/FS/UI/Web.pm
@@
-324,7
+324,7
@@
sub cust_header {
}
sub cust_sort_fields {
}
sub cust_sort_fields {
- cust_header(@_);
+ cust_header(@_)
if( @_ or !@cust_fields )
;
#inefficientish, but tiny lists and only run once per page
map { $_ eq 'custnum' ? 'custnum' : '' } @cust_fields;
#inefficientish, but tiny lists and only run once per page
map { $_ eq 'custnum' ? 'custnum' : '' } @cust_fields;
@@
-346,7
+346,7
@@
sub cust_sql_fields {
my @fields = qw( last first company );
# push @fields, map "ship_$_", @fields;
my @fields = qw( last first company );
# push @fields, map "ship_$_", @fields;
- cust_header(@_);
+ cust_header(@_)
if( @_ or !@cust_fields )
;
#inefficientish, but tiny lists and only run once per page
my @location_fields;
#inefficientish, but tiny lists and only run once per page
my @location_fields;
@@
-486,6
+486,7
@@
element.
sub cust_fields_subs {
my $unlinked_warn = 0;
sub cust_fields_subs {
my $unlinked_warn = 0;
+
return map {
my $f = $_;
if ( $unlinked_warn++ ) {
return map {
my $f = $_;
if ( $unlinked_warn++ ) {