From 39cb01caa049afbc9d61201c188892b9b5290268 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 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 Signed-off-by: Katrin Fischer --- .../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 2ea6465..b7a6ab2 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