From 280873d7e37134dfd20b0113cec1019b51332e57 Mon Sep 17 00:00:00 2001 From: Jacob O'Mara Date: Thu, 23 Apr 2026 14:34:57 +0100 Subject: [PATCH] RMaint: fix bug 34000 tests from backport Signed-off-by: Jacob O'Mara --- Koha/Encryption.pm | 5 +++-- Koha/Patron.pm | 2 ++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Koha/Encryption.pm b/Koha/Encryption.pm index faa7dbb3f8..bf8eb262f8 100644 --- a/Koha/Encryption.pm +++ b/Koha/Encryption.pm @@ -61,8 +61,9 @@ sub new { ); } return $class->SUPER::new( - -key => $encryption_key, - -cipher => 'Cipher::AES' + -key => $encryption_key, + -cipher => 'Cipher::AES', + -nodeprecate => 1, ); } diff --git a/Koha/Patron.pm b/Koha/Patron.pm index b52f8c9ecf..bae4b27599 100644 --- a/Koha/Patron.pm +++ b/Koha/Patron.pm @@ -315,6 +315,8 @@ sub store { $self->add_enrolment_fee_if_needed(0); + $self->discard_changes; + logaction( "MEMBERS", "CREATE", $self->borrowernumber, "" ) if C4::Context->preference("BorrowersLog"); }