Comment out the code to strip everything up to and including the
first - from the location field when trying to parse the input.
Apparently, they've stopped adding extra crud on the front of
our codes. The presence of this code is now causing problems
for those locations that do have dashes in their shortnames in
Evergreen.
Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
}
my $org_unit;
if ($location) {
- # Because Auto-Graphics. (This should be configured somehow.)
- $location =~ s/^[^-]+-//;
$org_unit = $self->retrieve_org_unit_by_shortname($location);
}
if ($request && $message && !$org_unit) {
$location = $request->{$message}->{InitiationHeader}->{ToAgencyId}->{AgencyId};
if ($location) {
- # Because Auto-Graphics. (This should be configured somehow.)
- $location =~ s/^[^-]+-//;
$org_unit = $self->retrieve_org_unit_by_shortname($location);
}
}