[freeside-commits] branch master updated. c2de745afd1ecd0cbbebbc6bcfe63a1ab0601679

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


The branch, master has been updated
       via  c2de745afd1ecd0cbbebbc6bcfe63a1ab0601679 (commit)
      from  22f13ac4f7eeb26adb0d063d767ea86663ee3864 (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 c2de745afd1ecd0cbbebbc6bcfe63a1ab0601679
Author: Ivan Kohler <ivan at freeside.biz>
Date:   Wed Dec 14 10:10:28 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