add self-service provision_pbx, RT#34939
[freeside.git] / FS / FS / cust_location.pm
index 72cd856..ad6d706 100644 (file)
@@ -267,10 +267,6 @@ sub replace {
   my $old = shift;
   $old ||= $self->replace_old;
   # the following fields are immutable
-  if ($self->get('unlock')) {
-    # well, mostly immutable
-    warn "WARNING: locationnum ".$old->locationnum." MODIFIED IN PLACE\n";
-  } else {
   foreach (qw(address1 address2 city state zip country)) {
     if ( $self->$_ ne $old->$_ ) {
       return "can't change cust_location field $_";
@@ -326,7 +322,7 @@ sub check {
     $self->ut_numbern('locationnum')
     || $self->ut_foreign_keyn('prospectnum', 'prospect_main', 'prospectnum')
     || $self->ut_foreign_keyn('custnum', 'cust_main', 'custnum')
-    || $self->ut_alphan('locationname')
+    || $self->ut_textn('locationname')
     || $self->ut_text('address1')
     || $self->ut_textn('address2')
     || $self->ut_text('city')