From fd55f6069b73cd6dd7ec5adaad38dbdb9ce09686 Mon Sep 17 00:00:00 2001 From: Alex Arnaud Date: Thu, 1 Aug 2019 14:48:31 +0200 Subject: [PATCH] Bug 23409 - show borrowernotes and opacnote's lines feeds Test plan: - Fill borrowernotes and opacnote with lines separated by lines endings, - save and check the content is displayed on a single line, - apply this patch, - check lines endings are displayed --- members/moremember.pl | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/members/moremember.pl b/members/moremember.pl index 33f833e..602201a 100755 --- a/members/moremember.pl +++ b/members/moremember.pl @@ -199,6 +199,15 @@ if ( $patron->is_expired || $patron->is_going_to_expire ) { ); } +# Convert line feed to html in borrowernotes and opacnote. +my $borrowernotes = $patron->borrowernotes; +$borrowernotes =~ s#\n#
#g; +$patron->borrowernotes($borrowernotes); + +my $opacnote = $patron->opacnote; +$opacnote =~ s#\n#
#g; +$patron->opacnote($opacnote); + $template->param( patron => $patron, issuecount => $patron->checkouts->count, -- 2.7.4