fix TeleAPI import (what kind of crack was Christopher smoking that he couldn't fix...
[freeside.git] / FS / FS / Test.pm
index 1f2b44b..3b1c092 100644 (file)
@@ -211,7 +211,7 @@ and then pass the form object to L</post> to submit it.
 sub form {
   my $self = shift;
   my $name = shift;
-  my ($form) = grep { $_->attr('name') eq $name } $self->forms;
+  my ($form) = grep { ($_->attr('name') || '') eq $name } $self->forms;
   $form;
 }
 
@@ -259,7 +259,6 @@ sub new_customer {
       last          => 'Customer',
       first         => $first,
       invoice_email => 'newcustomer@fake.freeside.biz',
-      payby         => 'BILL',
       bill_location => $location,
       ship_location => $location,
   });