Bugzilla – Attachment 175638 Details for
Bug 37989
Add template toolkit to problem_report notice
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 37989: Add template toolkit to problem_report notice
Bug-37989-Add-template-toolkit-to-problemreport-no.patch (text/plain), 1.56 KB, created by
Victor Grousset/tuxayo
on 2024-12-18 00:45:45 UTC
(
hide
)
Description:
Bug 37989: Add template toolkit to problem_report notice
Filename:
MIME Type:
Creator:
Victor Grousset/tuxayo
Created:
2024-12-18 00:45:45 UTC
Size:
1.56 KB
patch
obsolete
>From 9565734fbc4214ae25d3c2e3c776603ccb63ea59 Mon Sep 17 00:00:00 2001 >From: Lisette Scheer <lisette@bywatersolutions.com> >Date: Mon, 23 Sep 2024 18:12:31 +0000 >Subject: [PATCH] Bug 37989: Add template toolkit to problem_report notice > >This patch adds the ability to use template toolkit in the PROBLEM_REPORT notice > >Test plan: >1. Turn on OPACReportProblem in the system preferences. >2. In the staff interface, create the following report: > SELECT * FROM message_queue WHERE letter_id='PROBLEM_REPORT' >3. Log into the OPAC >4. Edit the PROBLEM_REPORT notice to include [% problemreport.username %] after the bespoke syntax for the username. >5. Report a problem >6. Run the report you created. >7. Observe the data. (Bug 37991, the title doesn't store properly) >8. Apply the patch >9. Restart all services (restart_all on command line Restart Services in sandbox options) >10. File a new OPAC problem report >11. Run your report. 2 usernames should now show. > >Signed-off-by: Olivier V <olivier.vezina@inLibro.com> >--- > C4/Letters.pm | 6 ++++++ > 1 file changed, 6 insertions(+) > >diff --git a/C4/Letters.pm b/C4/Letters.pm >index ce8ffda7e1..90d24a566b 100644 >--- a/C4/Letters.pm >+++ b/C4/Letters.pm >@@ -1921,6 +1921,12 @@ sub _get_tt_params { > plural => 'train_items', > pk => 'train_item_id' > }, >+ problem_reports => { >+ module => 'Koha::ProblemReports', >+ singluar => 'problemreport', >+ plural => 'problemreports', >+ pk => 'reportid' >+ }, > }; > > my $dbh = C4::Context->dbh; >-- >2.47.1
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 37989
:
171884
|
172019
|
175638
|
178472