From 36c888906166c00f4336ece53f8bd4e6515be912 Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Fri, 28 Apr 2017 14:11:00 -0400 Subject: [PATCH] Bug 18512 - GetAuthorisedValues.GetByCode Template plguin should return code (not empty string) if value not found To test: 1 - Create or edit a borrower with info in Sort1 and Sort2 field, not mapped to authorized values 2 - Note this info does not display on moremember.tt 3 - Apply patch 4 - Note value is passed through --- Koha/Template/Plugin/AuthorisedValues.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Koha/Template/Plugin/AuthorisedValues.pm b/Koha/Template/Plugin/AuthorisedValues.pm index 149827b..7e0ef5d 100644 --- a/Koha/Template/Plugin/AuthorisedValues.pm +++ b/Koha/Template/Plugin/AuthorisedValues.pm @@ -31,7 +31,7 @@ sub GetByCode { ? $opac ? $av->next->opac_description : $av->next->lib - : ''; + : $code; } sub Get { -- 2.1.4