Bugzilla – Attachment 91905 Details for
Bug 23409
Show circulation note and OPAC note with line feeds
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 23409 - show borrowernotes and opacnote's lines feeds
Bug-23409---show-borrowernotes-and-opacnotes-lines.patch (text/plain), 1.12 KB, created by
Alex Arnaud
on 2019-08-01 12:51:13 UTC
(
hide
)
Description:
Bug 23409 - show borrowernotes and opacnote's lines feeds
Filename:
MIME Type:
Creator:
Alex Arnaud
Created:
2019-08-01 12:51:13 UTC
Size:
1.12 KB
patch
obsolete
>From fd55f6069b73cd6dd7ec5adaad38dbdb9ce09686 Mon Sep 17 00:00:00 2001 >From: Alex Arnaud <alex.arnaud@biblibre.com> >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#<br />#g; >+$patron->borrowernotes($borrowernotes); >+ >+my $opacnote = $patron->opacnote; >+$opacnote =~ s#\n#<br />#g; >+$patron->opacnote($opacnote); >+ > $template->param( > patron => $patron, > issuecount => $patron->checkouts->count, >-- >2.7.4
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 23409
:
91905
|
91906
|
92172
|
92173
|
92246
|
92247
|
99712
|
99713
|
101386
|
101387