Bug 18494: Pass a code, not hash & Fix double commas

TEST PLAN
---------
1) prove -v t/db_dependent/Letters.t
   -- fails at test 5 or so.
2) apply patch
3) run step 1
   -- success
4) run koha qa test tools

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
This commit is contained in:
Mark Tompsett 2017-05-01 12:46:20 -04:00 committed by Kyle M Hall
parent ffa361c241
commit 5da5910cf1

View file

@ -62,12 +62,12 @@ $dbh->do(q|DELETE FROM message_transport_types|);
my $library = $builder->build({
source => 'Branch',
});
my $patron_category = $builder->build({ source => 'Category' });
my $patron_category = $builder->build({ source => 'Category' })->{categorycode};
my $date = dt_from_string;
my $borrowernumber = AddMember(
firstname => 'Jane',
surname => 'Smith',
categorycode => $patron_category,,
categorycode => $patron_category,
branchcode => $library->{branchcode},
dateofbirth => $date,
);