From f7f0da958bceb76584f7fe38bc537d66aa527aba Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Thu, 15 Aug 2019 13:46:35 +0000 Subject: [PATCH] Bug 23455: Patron card printing from Patron lists is broken This patch makes a few corrections to the process of printing patron cards from the patron lists page. These changes are necessitated by Bug 20650: Changes to the markup in patroncards/print.tt were not reflected in the JavaScript in patron_lists/lists.tt. Also fixed: A missing quotation mark, a missing semicolon, and incorrect template variable filter. To test, apply the patch and go to Tools -> Patron lists. - Click the "Actions" menu corresponding to a patron list. - Select "Print patron cards." - In the "Print patron cards" modal, click the "Export" button. - The modal should reload with a link to download a patron card PDF. The link should work correctly. https://bugs.koha-community.org/show_bug.cgi?id=23445 --- koha-tmpl/intranet-tmpl/prog/en/modules/patron_lists/lists.tt | 6 +++--- koha-tmpl/intranet-tmpl/prog/en/modules/patroncards/print.tt | 4 +++- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/patron_lists/lists.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/patron_lists/lists.tt index 11e810ba7fd..06f886d9b78 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/patron_lists/lists.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/patron_lists/lists.tt @@ -46,7 +46,7 @@ [% IF l.shared %] [% IF shared_by_other %] - by [% INCLUDE 'patron-title.inc' patron=l.owner %] + by [% INCLUDE 'patron-title.inc' patron=l.owner %] [% ELSE %] by you [% END %] @@ -127,7 +127,7 @@