From ec8a19629d5fc494afbf597d09b05dca4572216f Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 20 Mar 2024 08:35:29 +0100 Subject: [PATCH] Bug 19613: Use the 'note' profile MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit WNC amended patch: tidied Signed-off-by: David Cook Signed-off-by: Nick Clemens (cherry picked from commit 3cb586b72165bcbd029948f46407359be9d5e9a8) Signed-off-by: Fridolin Somers (cherry picked from commit 55931114b62557dfbbe01e7bcf0cd150b5733262) Signed-off-by: Frédéric Demians Signed-off-by: Wainui Witika-Park --- Koha/Patron.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Koha/Patron.pm b/Koha/Patron.pm index edb03d8cb6..e64cc8fa16 100644 --- a/Koha/Patron.pm +++ b/Koha/Patron.pm @@ -220,9 +220,9 @@ sub store { if defined $self->relationship and $self->relationship eq ""; - for my $note_field ( qw( borrowernotes opacnote ) ) { + for my $note_field (qw( borrowernotes opacnote )) { if ( !$self->in_storage || $self->_result->is_column_changed($note_field) ) { - $self->$note_field(C4::Scrubber->new('comment')->scrub($self->$note_field)); + $self->$note_field( C4::Scrubber->new('note')->scrub( $self->$note_field ) ); } } -- 2.39.5