Bugzilla – Attachment 76897 Details for
Bug 21025
Koha::Patron::Discharge is missing use C4::Letters
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 21025: Add GetPreparedLetter to Koha::Patron::Discharge
Bug-21025-Add-GetPreparedLetter-to-KohaPatronDisch.patch (text/plain), 1.83 KB, created by
Jonathan Druart
on 2018-07-12 17:38:17 UTC
(
hide
)
Description:
Bug 21025: Add GetPreparedLetter to Koha::Patron::Discharge
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2018-07-12 17:38:17 UTC
Size:
1.83 KB
patch
obsolete
>From bdf2f00d67d1c1574381747a66654e76491351f4 Mon Sep 17 00:00:00 2001 >From: Charles Farmer <charles.farmer@inLibro.com> >Date: Fri, 29 Jun 2018 16:12:59 -0400 >Subject: [PATCH] Bug 21025: Add GetPreparedLetter to Koha::Patron::Discharge > >Test plan (shamelessly ripped from Bug20953): > >1) Set system preference 'useDischarge' to 'Allow' >2) Choose a patron without checkouts nor fines nor restrictions >3) Log at OPAC and go to patron page /cgi-bin/koha/opac-user.pl >4) Click on 'ask for a discharge' tab > => You see /cgi-bin/koha/opac-discharge.pl > with text 'What is a discharge? ...' >5) Click on 'Ask for a discharge' link > => You see /cgi-bin/koha/opac-discharge.pl?op=request > with text 'Your discharge request has been sent ...' >6) In a new browser tab/page, go to intranet on /cgi-bin/koha/members/discharges.pl > => You see one discharge requets for the patron > => Click on 'allow' on patron discharge request >7) Come back to OPAC and refresh /cgi-bin/koha/opac-discharge.pl > => You see link 'Get your discharge' >8) Click on the link to get your generated PDF > => An error message should appear informing you to contact your website's admin >9) Apply this patch >10) Click again on the link to get your generated PDF > => This time, a download prompt should appear > >Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> > >Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >--- > Koha/Patron/Discharge.pm | 1 + > 1 file changed, 1 insertion(+) > >diff --git a/Koha/Patron/Discharge.pm b/Koha/Patron/Discharge.pm >index 5add12dbec..5e7595d32b 100644 >--- a/Koha/Patron/Discharge.pm >+++ b/Koha/Patron/Discharge.pm >@@ -6,6 +6,7 @@ use File::Temp qw( :POSIX ); > use Carp; > > use C4::Templates qw ( gettemplate ); >+use C4::Letters qw ( GetPreparedLetter ); > > use Koha::Database; > use Koha::DateUtils qw( dt_from_string output_pref ); >-- >2.11.0
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 21025
:
76588
|
76761
| 76897