View | Details | Raw Unified | Return to bug 11999
Collapse All | Expand All

(-)a/t/db_dependent/Reserves.t (-2 / +5 lines)
Lines 61-67 my $frameworkcode = q//; Link Here
61
t::lib::Mocks::mock_preference('ReservesNeedReturns', 1);
61
t::lib::Mocks::mock_preference('ReservesNeedReturns', 1);
62
62
63
# Somewhat arbitrary field chosen for age restriction unit tests. Must be added to db before the framework is cached
63
# Somewhat arbitrary field chosen for age restriction unit tests. Must be added to db before the framework is cached
64
$dbh->do("update marc_subfield_structure set kohafield='biblioitems.agerestriction' where tagfield='521' and tagsubfield='a' and frameworkcode=?", undef, $frameworkcode);
64
$dbh->do(q|
65
    INSERT INTO marc_subfield_structure (frameworkcode, tagfield, tagsubfield, kohafield)
66
    VALUES ('', '521', 'a', 'biblioitems.agerestriction')
67
    ON DUPLICATE KEY UPDATE kohafield = VALUES(kohafield)
68
|);
65
my $cache = Koha::Caches->get_instance;
69
my $cache = Koha::Caches->get_instance;
66
$cache->clear_from_cache("MarcStructure-0-$frameworkcode");
70
$cache->clear_from_cache("MarcStructure-0-$frameworkcode");
67
$cache->clear_from_cache("MarcStructure-1-$frameworkcode");
71
$cache->clear_from_cache("MarcStructure-1-$frameworkcode");
68
- 

Return to bug 11999