[Koha-bugs] [Bug 17539] t/db_dependent/Reserves.t is failing

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Nov 3 13:34:41 CET 2016


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17539

--- Comment #10 from Lari Taskula <lari.taskula at jns.fi> ---
(In reply to Jonathan Druart from comment #4)
> Lari, good catch.
> But still fail for me:
> Tag "" is not a valid tag. at t/db_dependent/Reserves.t line 510.
Strange! For me it seems to be working. Just a guess, could it be issue with
caching as warned at lines 57-58, that set the kohafield for line 509:
57: # Somewhat arbitrary field chosen for age restriction unit tests. Must be
added to db before the framework is cached
58: $dbh->do("update marc_subfield_structure set
kohafield='biblioitems.agerestriction' where tagfield='521' and
tagsubfield='a'");
...
509: my ( $ageres_tagid, $ageres_subfieldid ) = GetMarcFromKohaField(
"biblioitems.agerestriction" );
510: $record->append_fields(  MARC::Field->new($ageres_tagid, '', '',
$ageres_subfieldid => 'PEGI 16')  );

(In reply to Marcel de Rooy from comment #5)
> There is already an use_ok in the Reserves test.
> If you add another use, maybe change use_ok to require_ok ?
> Did the same somewhere else..
I squashed this into the first patch. Thanks!

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list