From bf29dfd440d596908403181278b8e9204c87cb04 Mon Sep 17 00:00:00 2001 From: Marcel de Rooy Date: Tue, 23 Jan 2018 15:16:35 +0100 Subject: [PATCH] Bug 20074: Fix hidden value in auth_subfields_structure Content-Type: text/plain; charset=utf-8 The template included an else branch where a value not equal to 0 or -5 was interpreted as 0 (Show all). This effectively converted hidden values 1 and 8 to 0. This patch removes that else branch. Test plan: Toggle a authority field between Hide all and Show all. Check what happens. Signed-off-by: Marcel de Rooy --- .../intranet-tmpl/prog/en/modules/admin/auth_subfields_structure.tt | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/auth_subfields_structure.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/auth_subfields_structure.tt index abff20e..bcc9af0 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/auth_subfields_structure.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/auth_subfields_structure.tt @@ -113,12 +113,10 @@ [%- IF ( loo.ohidden == 0 ) -%] - [%- ELSIF ( loo.ohidden == -5 ) -%] - - [%- ELSE -%] + [%# All other non-zero values mean: Hide %] - + [%- END -%] -- 2.1.4