https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43736

            Bug ID: 43736
           Summary: Reports should use the Print format when rendering
                    with a template
   Initiative type: ---
        Sponsorship ---
            status:
           Product: Koha
           Version: Main
          Hardware: All
                OS: All
            Status: NEW
          Keywords: regression
          Severity: normal
          Priority: P5 - low
         Component: Reports
          Assignee: [email protected]
          Reporter: [email protected]
        QA Contact: [email protected]
                CC: [email protected]
        Depends on: 34136
  Target Milestone: ---

When the option to render a report within the staff interface with a template
was added in Bug 34136, it used the Print format of the selected notice
template. Now it's using email instead. It should use Print when rendering a
report to view (and possibly print) within the staff interface.

This may have been caused by Bug 38121.

To recreate, start with the test plan on Bug 34136:
3) Create a new notice template using the new "Report" option from the
   "New notice" pulldown.
4) In the "Print" area, paste the following template:

[% FOREACH b IN data %]
<div class="panel panel-default">
  <div class="panel-heading">[% b.surname %], [% b.firstname %]</div>
  <div class="panel-body">Expiration: [% b.dateexpiry %]</div>
  <div class="panel-footer">ID: [% b.borrowernumber %]</div>
</div>
[% END %]

5) Create a report with the query: SELECT surname, firstname, dateexpiry,
borrowernumber FROM borrowers
6) Once the report is saved, use the new "Run with template" option to
   select the template you just created.

You'll find that selecting your template from the Run With Template button has
no effect. But if you move your content from step 4 to Email, the template
works.


Referenced Bugs:

https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=34136
[Bug 34136] Add ability to render a report using a notice template
-- 
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.
_______________________________________________
Koha-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to