From 1473575317423b01e03d5eb09ab03625f0ad0a49 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Mon, 9 May 2022 09:42:30 +0200 Subject: [PATCH] Bug 30603: Fix other occurrences Signed-off-by: David Nind Signed-off-by: Tomas Cohen Arazi Signed-off-by: Fridolin Somers --- .../prog/en/includes/member-alt-address-style.inc | 2 +- .../prog/en/includes/member-main-address-style.inc | 2 +- .../intranet-tmpl/prog/en/modules/circ/article-requests.tt | 2 +- koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt | 2 +- .../intranet-tmpl/prog/en/modules/circ/pendingreserves.tt | 2 +- .../intranet-tmpl/prog/en/modules/circ/request-article.tt | 2 +- .../intranet-tmpl/prog/en/modules/circ/waitingreserves.tt | 2 +- koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt | 2 +- koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt | 4 ++-- .../opac-tmpl/bootstrap/en/includes/av-build-dropbox.inc | 2 +- koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-memberentry.tt | 4 ++-- 11 files changed, 13 insertions(+), 13 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/member-alt-address-style.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/member-alt-address-style.inc index ad250094e0..f358763c3b 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/member-alt-address-style.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/member-alt-address-style.inc @@ -57,7 +57,7 @@ [% BLOCK 'alt-address-style_roadtypes' %] [% SET roadtypes = AuthorisedValues.GetAuthValueDropbox('ROADTYPE') %] - [% IF roadtypes %] + [% IF roadtypes.count %] [% UNLESS noB_streettype %]
  • [% IF ( mandatoryB_streettype ) %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/member-main-address-style.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/member-main-address-style.inc index 055319f139..a5c95b9c55 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/member-main-address-style.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/member-main-address-style.inc @@ -48,7 +48,7 @@ [% BLOCK 'address-style_roadtypes' %] [% SET roadtypes = AuthorisedValues.GetAuthValueDropbox('ROADTYPE') %] - [% IF roadtypes %] + [% IF roadtypes.count %] [% UNLESS nostreettype %]
  • [% IF ( mandatorystreettype ) %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/article-requests.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/article-requests.tt index 1c559b5330..562854249e 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/article-requests.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/article-requests.tt @@ -102,7 +102,7 @@
    [% SET ar_cancellation = AuthorisedValues.GetAuthValueDropbox('AR_CANCELLATION') %] - [% IF ar_cancellation %] + [% IF ar_cancellation.count %] [% SET hold_cancellation = AuthorisedValues.GetAuthValueDropbox('HOLD_CANCELLATION') %] - [% IF hold_cancellation %] + [% IF hold_cancellation.count %] [% SET hold_cancellation = AuthorisedValues.GetAuthValueDropbox('HOLD_CANCELLATION') %] - [% IF hold_cancellation %] + [% IF hold_cancellation.count %]
    diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/waitingreserves.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/waitingreserves.tt index f9aeb48443..b6e06f7bc9 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/waitingreserves.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/waitingreserves.tt @@ -155,7 +155,7 @@
    [% SET hold_cancellation = AuthorisedValues.GetAuthValueDropbox('HOLD_CANCELLATION') %] - [% IF hold_cancellation %] + [% IF hold_cancellation.count %] [% SET hold_cancellation = AuthorisedValues.GetAuthValueDropbox('HOLD_CANCELLATION') %] - [% IF hold_cancellation %] + [% IF hold_cancellation.count %]
    [% SET hold_cancellation = AuthorisedValues.GetAuthValueDropbox('HOLD_CANCELLATION') %] - [% IF hold_cancellation %] + [% IF hold_cancellation.count %] diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/includes/av-build-dropbox.inc b/koha-tmpl/opac-tmpl/bootstrap/en/includes/av-build-dropbox.inc index 9b833fcfe0..2c2ebeac50 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/includes/av-build-dropbox.inc +++ b/koha-tmpl/opac-tmpl/bootstrap/en/includes/av-build-dropbox.inc @@ -9,7 +9,7 @@ [% SET avs = AuthorisedValues.GetAuthValueDropbox( category ) %] [% DEFAULT class = '' size = 20 %] -[% IF avs %] +[% IF avs.count %] [% IF required %]