[freeside-commits] branch master updated. 87d108d379a5c077370afc04728d1c28e9edef30

Ivan ivan at 420.am
Wed Feb 1 11:31:42 PST 2017


The branch, master has been updated
       via  87d108d379a5c077370afc04728d1c28e9edef30 (commit)
      from  edd6a339eb7ea156272264ffd164711fc8af792e (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 87d108d379a5c077370afc04728d1c28e9edef30
Author: Ivan Kohler <ivan at freeside.biz>
Date:   Wed Feb 1 11:31:41 2017 -0800

    fix customer add success message

diff --git a/httemplate/edit/process/cust_main.cgi b/httemplate/edit/process/cust_main.cgi
index 354e22e..088576f 100755
--- a/httemplate/edit/process/cust_main.cgi
+++ b/httemplate/edit/process/cust_main.cgi
@@ -18,7 +18,7 @@
 <% $cgi->redirect( -uri    => popurl(3). "view/cust_main.cgi?". $new->custnum,
                    -cookie => CGI::Cookie->new(
                      -name    => 'freeside_status',
-                     -value   => mt('Customer edited'),
+                     -value   => mt($freeside_status),
                      -expires => '+5m',
                    ),
    )
@@ -220,8 +220,11 @@ if ( $vendor eq 'avalara' or $vendor eq 'suretax' ) {
 }
 
 #perhaps this stuff should go to cust_main.pm
+my $freeside_status = '';
 if ( $new->custnum eq '' or $duplicate_of ) {
 
+  $freeside_status = 'Customer added';
+
   my $cust_pkg = '';
   my $svc;
 
@@ -343,6 +346,8 @@ if ( $new->custnum eq '' or $duplicate_of ) {
   
 } else { #create old record object
 
+  $freeside_status = 'Customer edited';
+
   my $old = qsearchs( 'cust_main', { 'custnum' => $new->custnum } ); 
   $error ||= "Old record not found!" unless $old;
 

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

Summary of changes:
 httemplate/edit/process/cust_main.cgi |    7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)




More information about the freeside-commits mailing list