fix leading and trailing spaces in customer,, contact, prospect names and companies...
[freeside.git] / FS / FS / prospect_main.pm
index b5d51d3..a04af86 100644 (file)
@@ -208,6 +208,12 @@ sub check {
   ;
   return $error if $error;
 
+  my $company = $self->company;
+  $company =~ s/^\s+//; 
+  $company =~ s/\s+$//; 
+  $company =~ s/\s+/ /g;
+  $self->company($company);
+
   $self->SUPER::check;
 }