From b6ba01ba814dc1e5c8e0cb6de5da1d31e62ba968 Mon Sep 17 00:00:00 2001 From: Julian Maurice Date: Thu, 6 Feb 2014 15:42:08 +0100 Subject: [PATCH] Bug 8918: t/db_dependant/Reserves.t fails if marcflavour is UNIMARC Set marcflavour to MARC21 to make tests pass. --- t/db_dependent/Reserves.t | 2 ++ 1 file changed, 2 insertions(+) diff --git a/t/db_dependent/Reserves.t b/t/db_dependent/Reserves.t index 31708c2..1ea6f82 100755 --- a/t/db_dependent/Reserves.t +++ b/t/db_dependent/Reserves.t @@ -51,6 +51,8 @@ $bib->append_fields( MARC::Field->new('245', ' ', ' ', a => $title), ); my ($bibnum, $bibitemnum); +# If marcflavour is UNIMARC, AddBiblio fails and all following tests fail too. +C4::Context->set_preference('marcflavour', 'MARC21'); ($bibnum, $title, $bibitemnum) = AddBiblio($bib, ''); # Helper item for that biblio. -- 1.7.10.4