Bug 12478: make authid get to the templates properly

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Jesse Weaver <jweaver@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
This commit is contained in:
Robin Sheat 2015-03-04 18:19:25 +13:00 committed by Tomas Cohen Arazi
parent fe1e13085e
commit 712bbb08dd
1 changed files with 3 additions and 1 deletions

View File

@ -161,7 +161,9 @@ sub search_auth_compat {
# I wonder if these should be real values defined in the mapping
# rather than hard-coded conversions.
$result{authid} = $record->{ Local-Number };
# Our results often come through as nested arrays, to fix this
# requires changes in catmandu.
$result{authid} = $record->{ 'Local-Number' }[0][0];
# TODO put all this info into the record at index time so we
# don't have to go and sort it all out now.