[freeside-commits] branch master updated. a832fdcc15e848eb6b63998403cad11cf3d6e3c3

Ivan ivan at 420.am
Fri Mar 11 20:06:33 PST 2016


The branch, master has been updated
       via  a832fdcc15e848eb6b63998403cad11cf3d6e3c3 (commit)
      from  b91274144fa2b6be37c82f2e296d4e62cd47358e (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 a832fdcc15e848eb6b63998403cad11cf3d6e3c3
Author: Ivan Kohler <ivan at freeside.biz>
Date:   Fri Mar 11 20:06:32 2016 -0800

    customer package browse: reset page on option change, RT#39822

diff --git a/httemplate/view/cust_main/packages.html b/httemplate/view/cust_main/packages.html
index 33ffecc..43ebb28 100755
--- a/httemplate/view/cust_main/packages.html
+++ b/httemplate/view/cust_main/packages.html
@@ -139,7 +139,7 @@ if ( el ) el.scrollIntoView(true);
       window.location = '<% $cgi->self_url %>;locationnum=' + what.options[what.selectedIndex].value;
 %     $cgi->param('locationnum', $locationnum);
     }
-    
+
   </SCRIPT>
 
 % }
@@ -310,6 +310,7 @@ my $num_pkgs = $cust_main->$method({
 
 my $maxrecords = 10;
 my $offset = $cgi->param('offset') =~ /^(\d+)$/ ? $1 : 0;
+$cgi->delete('offset');
 
 my @packages = $cust_main->$method( {
   'select'    => "$cust_pkg_fields, $part_pkg_fields, $num_svcs",

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

Summary of changes:
 httemplate/view/cust_main/packages.html |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)




More information about the freeside-commits mailing list