From: Chris Sharp Date: Sun, 9 May 2021 20:19:11 +0000 (-0400) Subject: Revert "tweak to allow OpenAthens to retreive OU name" X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=a492ac2f0ad466dbb998b6020f25a95091af4800;p=evergreen%2Fpines.git Revert "tweak to allow OpenAthens to retreive OU name" This reverts commit e99601f01a2ddf3178ff5b5124358d1897ab55e3. --- diff --git a/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/OpenAthens.pm b/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/OpenAthens.pm index bc6e2f61d7..4a5af936b9 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/OpenAthens.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/OpenAthens.pm @@ -320,9 +320,9 @@ sub _get_openathens_session_initiator_url { my $ou_id = $user->home_ou; if ($ou_id && $U->is_true($openathens_config->{release_home_ou})) { - my $ou_name = $ctx->{get_aou}->($ou_id)->shortname; - if ($ou_name) { - $request_obj->{attributes}->{OA_ATTR_HOME_OU} = $ou_name; + my $ou = $ctx->{get_aou}->($ou_id); + if ($ou) { + $request_obj->{attributes}->{OA_ATTR_HOME_OU} = $ou->shortname; } }