From 7453b4d0616f7c8b6567e915bd325b50c0853aa8 Mon Sep 17 00:00:00 2001 From: Fridolin Somers Date: Thu, 8 Feb 2024 12:23:30 +0100 Subject: [PATCH] Bug 36010: Fix Items/AutomaticItemModificationByAge.t failing since Bug 32029 UT is failing in jenkins. Change to use biblio.copyrightdate instead of bilio.medium Run prove t/db_dependent/Items/AutomaticItemModificationByAge.t Signed-off-by: Jonathan Druart Signed-off-by: Victor Grousset/tuxayo Signed-off-by: Katrin Fischer (cherry picked from commit 2e6a2c3b5b6d0464215189e29954d06e5f6e236b) Signed-off-by: Fridolin Somers (cherry picked from commit b0660d11f52bb310a2b39da0a42dda60da87a2ad) Signed-off-by: Lucas Gass --- t/db_dependent/Items/AutomaticItemModificationByAge.t | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/t/db_dependent/Items/AutomaticItemModificationByAge.t b/t/db_dependent/Items/AutomaticItemModificationByAge.t index a1c6f73004..74532194b0 100755 --- a/t/db_dependent/Items/AutomaticItemModificationByAge.t +++ b/t/db_dependent/Items/AutomaticItemModificationByAge.t @@ -47,7 +47,8 @@ $cache->clear_from_cache("MarcSubfieldStructure-$frameworkcode"); my $record = MARC::Record->new(); $record->append_fields( MARC::Field->new( '100', ' ', ' ', a => 'Moffat, Steven' ), - MARC::Field->new( '245', ' ', ' ', a => 'Silence in the library', h => 'Book' ), + MARC::Field->new( '245', ' ', ' ', a => 'Silence in the library' ), + MARC::Field->new( '260', ' ', ' ', c => '1999' ), MARC::Field->new( '942', ' ', ' ', c => 'ITEMTYPE_T' ), ); my ($biblionumber, undef) = C4::Biblio::AddBiblio($record, $frameworkcode); @@ -336,8 +337,8 @@ is( $modified_item->new_status, 'agefield_new_value', q|ToggleNewStatus: Age = 2 # does not exist conditions => [ { - field => 'biblio.medium', - value => 'Book', + field => 'biblio.copyrightdate', + value => '1999', }, ], substitutions => [ -- 2.20.1