[freeside-commits] freeside/httemplate/search cust_pay_pending.html, 1.1, 1.2

Ivan,,, ivan at wavetail.420.am
Wed Feb 18 23:57:54 PST 2009


Update of /home/cvs/cvsroot/freeside/httemplate/search
In directory wavetail.420.am:/tmp/cvs-serv31645/httemplate/search

Modified Files:
	cust_pay_pending.html 
Log Message:
redirect pending payment report back to customer when the pending payment is resolved, RT#4837, and fix otaker fallout from the pending stuff, RT#4866

Index: cust_pay_pending.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/search/cust_pay_pending.html,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- cust_pay_pending.html	16 Feb 2009 23:54:38 -0000	1.1
+++ cust_pay_pending.html	19 Feb 2009 07:57:52 -0000	1.2
@@ -10,6 +10,7 @@
                 'addl_fields'   => [ sub { time2str('%r', shift->_date ) },
                                      $status_sub,
                                    ],
+                'redirect_empty' => $redirect_empty,
           )
 %>
 <%init>
@@ -44,4 +45,13 @@
   $return. qq! <FONT SIZE="-1">($link)</FONT>!;
 };
 
+my $redirect_empty = sub {
+  my $cgi = shift;
+  if ( $cgi->param('custnum') =~ /^(\d+)$/ ) {
+    $p. "view/cust_main.cgi?$1";
+  } else {
+    '';
+  }
+};
+
 </%init>



More information about the freeside-commits mailing list