summaryrefslogtreecommitdiff
path: root/httemplate/search/svc_broadband.cgi
diff options
context:
space:
mode:
Diffstat (limited to 'httemplate/search/svc_broadband.cgi')
-rwxr-xr-xhttemplate/search/svc_broadband.cgi10
1 files changed, 8 insertions, 2 deletions
diff --git a/httemplate/search/svc_broadband.cgi b/httemplate/search/svc_broadband.cgi
index 0e52d5f..e8cb65a 100755
--- a/httemplate/search/svc_broadband.cgi
+++ b/httemplate/search/svc_broadband.cgi
@@ -149,8 +149,14 @@ foreach my $pkg_field ( @pkg_fields ) {
#not the most efficient to do it every field, but this is of niche use. so far
push @fields_pkg, sub { my $svc_x = shift;
my $cust_pkg = $svc_x->cust_svc->cust_pkg or return '';
- my $value = $cust_pkg->get($pkg_field);#closures help alot
- $value ? time2str('%b %d %Y', $value ) : '';
+ my $value;
+ if ($pkg_field eq 'package') {
+ $value = $cust_pkg->part_pkg->pkg;
+ }
+ else {
+ $value = $cust_pkg->get($pkg_field);#closures help alot
+ $value ? time2str('%b %d %Y', $value ) : '';
+ }
};
push @blank_pkg, '';