From 83324ded22d35c5c5dde5be091818ef8dfad024f Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Thu, 8 Jun 2017 15:35:02 -0300 Subject: [PATCH] Bug 18762: Remove warnings from xt/author/valid-templates.t Test plan: Read the changes and make sure they make sense Signed-off-by: Lee Jamison Signed-off-by: Mark Tompsett (cherry picked from commit ab29b5efdc763269399c06aa62ac0a36a93152f8) Signed-off-by: Fridolin Somers (cherry picked from commit 9cd4fc3703de5882de8986d364221f9134aaaa80) Signed-off-by: Katrin Fischer --- koha-tmpl/intranet-tmpl/prog/en/includes/blocked-fines.inc | 2 +- koha-tmpl/intranet-tmpl/prog/en/modules/acqui/supplier.tt | 2 +- koha-tmpl/intranet-tmpl/prog/en/modules/authorities/detail.tt | 2 +- koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/itemsearch.tt | 2 +- koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt | 2 +- koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-auth-detail.tt | 2 +- koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/blocked-fines.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/blocked-fines.inc index 0789789bff..c32324d9df 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/blocked-fines.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/blocked-fines.inc @@ -1,6 +1,6 @@ [% USE Price %] [% SET NoIssuesCharge = Koha.Preference('noissuescharge') %] -[% IF fines > 0 %] +[% IF fines and fines > 0 %]
  • Fees & Charges: Patron has outstanding fees & charges of [% fines | $Price %]. diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/supplier.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/supplier.tt index e8401f559a..acc01a04a4 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/supplier.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/supplier.tt @@ -353,7 +353,7 @@ function delete_contact(ev) {

    Discount: [% discount | format("%.1f") %] %

    Tax rate: - [% 0 + tax_rate * 100 %] %

    + [% ( tax_rate || 0 ) * 100 %] %

    [% IF deliverytime.defined %]

    Delivery time: [% deliverytime %] days

    diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/detail.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/detail.tt index e1502325a2..d8d736acd4 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/detail.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/detail.tt @@ -90,7 +90,7 @@ function searchauthority() {

    Authority #[% authid %] ([% authtypetext %])

    - [% IF count > 0 %] + [% IF count %] Used in [% count %] record(s) [% ELSE %] This authority is not used in any records. diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/itemsearch.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/itemsearch.tt index 29343bc7b4..9c02f6a2ef 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/itemsearch.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/itemsearch.tt @@ -40,7 +40,7 @@ [% END %] - [% values = CGI.param(name) %] + [% SET values = CGI.param(name) %]