From 9d6549d3b61d72d8fb95925837b3a498992c991e Mon Sep 17 00:00:00 2001 From: Mark Tompsett Date: Mon, 1 May 2017 12:46:20 -0400 Subject: [PATCH] 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 Signed-off-by: Mason James --- t/db_dependent/Letters.t | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/t/db_dependent/Letters.t b/t/db_dependent/Letters.t index 8c68709e67..d67a59e76e 100644 --- a/t/db_dependent/Letters.t +++ b/t/db_dependent/Letters.t @@ -61,11 +61,12 @@ $dbh->do(q|DELETE FROM message_transport_types|); my $library = $builder->build({ source => 'Branch', }); +my $patron_category = $builder->build({ source => 'Category' })->{categorycode}; my $date = dt_from_string; my $borrowernumber = AddMember( firstname => 'Jane', surname => 'Smith', - categorycode => 'PT', + categorycode => $patron_category, branchcode => $library->{branchcode}, dateofbirth => $date, ); -- 2.39.5