From ab29b5efdc763269399c06aa62ac0a36a93152f8 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 --- 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 21098f0ffd..1cbe84ffa8 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 25a3d656ef..760e9d2a8e 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 5905e3e281..3a70dad636 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) %]