Bug 37989 - Add template toolkit to problem_report notice
Summary: Add template toolkit to problem_report notice
Status: Signed Off
Alias: None
Product: Koha
Classification: Unclassified
Component: Notices (show other bugs)
Version: unspecified
Hardware: All All
: P5 - low enhancement
Assignee: Lisette Scheer
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks: 36260
  Show dependency treegraph
 
Reported: 2024-09-23 18:07 UTC by Lisette Scheer
Modified: 2024-09-26 18:55 UTC (History)
1 user (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:


Attachments
Attachment to Bug 37989 - Add template toolkit to problem_report notice (903 bytes, patch)
2024-09-23 18:25 UTC, Lisette Scheer
Details | Diff | Splinter Review
Bug 37989: Add template toolkit to problem_report notice This patch adds the ability to use template toolkit in the PROBLEM_REPORT notice (957 bytes, patch)
2024-09-26 18:54 UTC, Olivier Vezina
Details | Diff | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
Description Lisette Scheer 2024-09-23 18:07:54 UTC
Currently the PROBLEM_REPORT notice does not properly call the problemreports object into the notice.
Comment 1 Lisette Scheer 2024-09-23 18:25:42 UTC
Created attachment 171884 [details] [review]
Attachment to Bug 37989 - Add template toolkit to problem_report notice

Bug 37989: Add template toolkit to problem_report notice 
This patch adds the ability to use template toolkit in the PROBLEM_REPORT notice
Comment 2 Lisette Scheer 2024-09-23 18:34:29 UTC
To test:

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. Report a problem
5. Run the report you created.
6. Observe the data. (Bug 37991, the title doesn't store properly)
7. Apply the patch
8. Restart all services (restart_all on command line Restart Services in sandbox options)
9. Edit the PROBLEM_REPORT notice to include [% problemreport.username %] after the bespoke syntax for the username. 
10. File a new OPAC problem report
11. Run your report. 2 usernames should now show.
Comment 3 Olivier Vezina 2024-09-26 18:54:52 UTC
Created attachment 172019 [details] [review]
Bug 37989: Add template toolkit to problem_report notice This patch adds the ability to use template toolkit in the PROBLEM_REPORT notice

Signed-off-by: Olivier V <olivier.vezina@inLibro.com>