better detection of new locations that are the same as existing locations, #940,...
[freeside.git] / httemplate / misc / location.cgi
index 188c5c3..35ae0f1 100644 (file)
@@ -24,8 +24,9 @@ my $cust_location = qsearchs({
 
 my %hash = ();
 %hash = map { $_ => $cust_location->$_() }
-            qw( address1 address2 city county state zip country
-                location_kind location_type location_number )
+            ( FS::cust_main->location_fields,
+              qw( location_kind location_type location_number )
+            )
   if $cust_location;
 
 </%init>