projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
5cd8297
)
RT#8465: add service label to downloadable package reports
author
mark
<mark>
Fri, 28 May 2010 07:51:01 +0000
(07:51 +0000)
committer
mark
<mark>
Fri, 28 May 2010 07:51:01 +0000
(07:51 +0000)
httemplate/search/cust_pkg.cgi
patch
|
blob
|
history
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' => [
'',