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

Signed-off-by: Mark Tompsett <mtompset@hotmail.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
This commit is contained in:
Nick Clemens 2017-04-28 14:11:00 -04:00 committed by Kyle M Hall
parent a807d7199e
commit 62c3370655
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@ sub GetByCode {
? $opac
? $av->next->opac_description
: $av->next->lib
: '';
: $code;
}
sub Get {