X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2Fcust_location.pm;h=d209a59ed53b6df1880704560d0a72e607011af8;hb=6bb484c1877f2436de835981527bd5c2fd02df1d;hp=67a5e3eb1887bd6b381c488ada57fbb3e2e0f824;hpb=ddb601f6bb7bdce8e0912e78472335f5613d20db;p=freeside.git diff --git a/FS/FS/cust_location.pm b/FS/FS/cust_location.pm index 67a5e3eb1..d209a59ed 100644 --- a/FS/FS/cust_location.pm +++ b/FS/FS/cust_location.pm @@ -915,7 +915,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.')'