projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
RT custom fields patch, RT#8449
[freeside.git]
/
httemplate
/
search
/
cust_pkg.cgi
diff --git
a/httemplate/search/cust_pkg.cgi
b/httemplate/search/cust_pkg.cgi
index
adbec7a
..
74a3a6d
100755
(executable)
--- a/
httemplate/search/cust_pkg.cgi
+++ b/
httemplate/search/cust_pkg.cgi
@@
-80,6
+80,18
@@
# '</table>';
# },
sub {
# '</table>';
# },
sub {
+ my $cust_pkg = shift;
+ my $type = $cgi->param('_type') || '';
+ if ($type =~ /xls|csv/) {
+ my $cust_svc = $cust_pkg->primary_cust_svc;
+ if($cust_svc) {
+ return join ": ",($cust_svc->label)[0,1];
+ }
+ else {
+ return '';
+ }
+ }
+ else {
[ map {
[
{ 'data' => $_->[0]. ':',
[ map {
[
{ 'data' => $_->[0]. ':',
@@
-91,9
+103,10
@@
$_->[2]. '.cgi?'. $_->[3],
},
];
$_->[2]. '.cgi?'. $_->[3],
},
];
- }
shift
->labels
+ }
$cust_pkg
->labels
];
];
- },
+ }
+ }
],
'color' => [
'',
],
'color' => [
'',