X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=FS%2FFS%2FTest.pm;h=3b1c0921c00554123d7adf32254b8c799de2db00;hp=1f2b44bd64838085bcf0120b1b28f57f3bb57f18;hb=dc83512c36dc6bea2585abada4f88d714c600e55;hpb=bc62f937601d4e453730cf321f8f507ebd68cb36 diff --git a/FS/FS/Test.pm b/FS/FS/Test.pm index 1f2b44bd6..3b1c0921c 100644 --- a/FS/FS/Test.pm +++ b/FS/FS/Test.pm @@ -211,7 +211,7 @@ and then pass the form object to L 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, });