X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2Fcust_location.pm;h=e1b853383da4c9efff1a031d90d769e9287a625e;hb=f4daf7e8c831fe126dc3fd1d6d0db5ee3b46d602;hp=a9660d86cef558e313b2f0fbfae23c2f759883e3;hpb=c53b9ea5e995de0388c4e1973b1929626fdc29a6;p=freeside.git diff --git a/FS/FS/cust_location.pm b/FS/FS/cust_location.pm index a9660d86c..e1b853383 100644 --- a/FS/FS/cust_location.pm +++ b/FS/FS/cust_location.pm @@ -937,7 +937,7 @@ sub _upgrade_data { next if $field eq 'disabled'; foreach my $location (qsearch({ table => 'cust_location', - extra_sql => " WHERE $field LIKE ' %' OR $field LIKE '% '" + extra_sql => " WHERE disabled IS NULL AND ($field LIKE ' %' OR $field LIKE '% ')" })) { my $error = $location->replace; die "$error (fixing whitespace in $field, locationnum ".$location->locationnum.')'