[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

SF.net SVN: ledger-smb:[5644] trunk/LedgerSMB/Scripts/contact.pm



Revision: 5644
          http://ledger-smb.svn.sourceforge.net/ledger-smb/?rev=5644&view=rev
Author:   einhverfr
Date:     2013-02-07 04:03:41 +0000 (Thu, 07 Feb 2013)
Log Message:
-----------
Correcting multiple address entry workflow

Modified Paths:
--------------
    trunk/LedgerSMB/Scripts/contact.pm

Modified: trunk/LedgerSMB/Scripts/contact.pm
===================================================================
--- trunk/LedgerSMB/Scripts/contact.pm	2013-02-06 11:40:02 UTC (rev 5643)
+++ trunk/LedgerSMB/Scripts/contact.pm	2013-02-07 04:03:41 UTC (rev 5644)
@@ -537,6 +537,9 @@
     $location->id($request->{location_id}) if $request->{location_id};
     $location->save;
     $request->{target_div} = 'address_div';
+    # Assumption alert!  Assuming additional addresses share a city, state
+    # and country more often than not -- CT
+    delete $request->{"$_"} for (qw(line_one line_two line_three mail_code));
     get($request);
 	
 }

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.