fix CDR links
[freeside.git] / httemplate / view / svc_phone.cgi
index 3cc1b3f..8c0c9e0 100644 (file)
@@ -1,11 +1,18 @@
 <% include('elements/svc_Common.html',
               'table'     => 'svc_phone',
-              'fields'    => [qw( countrycode phonenum sip_password pin )],
+              'fields'    => [qw(
+                                  countrycode
+                                  phonenum
+                                  sip_password
+                                  pin
+                                  phone_name
+                             )],
               'labels'    => {
                                'countrycode'  => 'Country code',
                                'phonenum'     => 'Phone number',
                                'sip_password' => 'SIP password',
                                'pin'          => 'PIN',
+                               'phone_name'   => 'Name',
                              },
               'html_foot' => $html_foot,
           )
@@ -30,7 +37,7 @@ my $html_foot = sub {
   #  "View $_ CDRs</A>";
   #} keys(%what);
   my @links = map {
-    qq(<A HREF="${p}search/cdr.html?charged_party=$number;freesidestatus=$what{$_}">).
+    qq(<A HREF="${p}search/cdr.html?cdrbatch=__ALL__;charged_party=$number;freesidestatus=$what{$_}">).
     "View $_ CDRs</A>";
   } keys(%what);