From 1efe9ffc776e864ad3e8109719d9b5765d91f9c5 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 WNC amended patch: tidied Signed-off-by: David Cook Signed-off-by: Nick Clemens Signed-off-by: Tomas Cohen Arazi --- Koha/Patron.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Koha/Patron.pm b/Koha/Patron.pm index 6e5da3f51e..1691c9d25b 100644 --- a/Koha/Patron.pm +++ b/Koha/Patron.pm @@ -232,9 +232,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