[Koha-bugs] [Bug 35070] New: Koha plugins implementing "background_jobs" hook can't provide view template
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Tue Oct 17 03:32:33 CEST 2023
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35070
Bug ID: 35070
Summary: Koha plugins implementing "background_jobs" hook can't
provide view template
Change sponsored?: ---
Product: Koha
Version: master
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P5 - low
Component: Plugin architecture
Assignee: koha-bugs at lists.koha-community.org
Reporter: dcook at prosentient.com.au
QA Contact: testopia at bugs.koha-community.org
At the moment, Koha plugins implementing the "background_jobs" hook can't
provide a template to "View" the job.
Instead, you get an error like:
Template process failed: file error - background_jobs/plugin_TYPE_ACTION.inc:
not found at /kohadevbox/koha/C4/Templates.pm line 127
This should be a pretty easy fix. Basically, Koha::BackgroundJob should have a
method that returns "background_jobs/{job type}" and a Koha plugin can override
this method to provide its own template.
We use the ABSOLUTE option for Template::Toolkit, so you can provide an
absolute filepath to a template within the plugin and it'll get processed.
--
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
More information about the Koha-bugs
mailing list