[freeside-commits] branch FREESIDE_4_BRANCH updated. 1de7a946746257c26097ea87ee4697d7fe6fd262

Ivan ivan at 420.am
Wed Dec 14 10:10:32 PST 2016


The branch, FREESIDE_4_BRANCH has been updated
       via  1de7a946746257c26097ea87ee4697d7fe6fd262 (commit)
      from  92066a1e4b35a3dbc5169387297087b5d0f87b6a (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 1de7a946746257c26097ea87ee4697d7fe6fd262
Author: Ivan Kohler <ivan at freeside.biz>
Date:   Wed Dec 14 10:10:29 2016 -0800

    fix links for previous/next period inbound calls, RT#73652

diff --git a/fs_selfservice/FS-SelfService/cgi/view_cdr_details.html b/fs_selfservice/FS-SelfService/cgi/view_cdr_details.html
index d2be287..40eed80 100644
--- a/fs_selfservice/FS-SelfService/cgi/view_cdr_details.html
+++ b/fs_selfservice/FS-SelfService/cgi/view_cdr_details.html
@@ -13,22 +13,25 @@
 <TABLE WIDTH="100%">
   <TR>
     <TD WIDTH="50%">
-<%= if ($previous < $beginning) {
-    $OUT .= qq!<A HREF="${url}view_cdr_details;svcnum=$svcnum;!;
-    $OUT .= qq!inbound=1;! if $inbound;
-    $OUT .= qq!beginning=$previous;ending=$beginning">Previous period</A>!;
-    }else{
+<%=
+    $ahref = qq!<A HREF="${url}view_cdr_details;svcnum=$svcnum;!;
+    $ahref = qq!inbound=1;! if $inbound;
+    if ($previous < $beginning) {
+      $OUT .= $ahref.
+              qq!beginning=$previous;ending=$beginning">Previous period</A>!;
+    } else {
       '';
-    } %>
+    }
+%>
     </TD>
     <TD  WIDTH="50%" ALIGN="right">
-<%= if ($next > $ending) {
-    $OUT .= qq!<A HREF="${url}view_cdr_details;svcnum=$svcnum;!;
-    $OUT .= qq!inbound=1;! if $inbound;
-    $OUT .= qq!beginning=$ending;ending=$next">Next period</A>!;
-    }else{
+<%= 
+    if ($next > $ending) {
+      $OUT .= $ahref. qq!beginning=$ending;ending=$next">Next period</A>!;
+    } else {
       '';
-    }%>
+    }
+%>
     </TD>
   </TR>
 </TABLE>

-----------------------------------------------------------------------

Summary of changes:
 .../FS-SelfService/cgi/view_cdr_details.html       |   27 +++++++++++---------
 1 file changed, 15 insertions(+), 12 deletions(-)




More information about the freeside-commits mailing list