From: erickson Date: Fri, 4 Sep 2009 20:42:32 +0000 (+0000) Subject: capture override as a var because using =~ in an arg list is non-good X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=b7ef3ed5fa8977b65d931a7d801e8594d04dc15e;p=Evergreen.git capture override as a var because using =~ in an arg list is non-good git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_1_6@13975 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/src/perlmods/OpenILS/Application/Cat.pm b/Open-ILS/src/perlmods/OpenILS/Application/Cat.pm index 916a1c5f95..b4c2c57ccd 100644 --- a/Open-ILS/src/perlmods/OpenILS/Application/Cat.pm +++ b/Open-ILS/src/perlmods/OpenILS/Application/Cat.pm @@ -255,8 +255,9 @@ sub biblio_record_xml_import { return $e->die_event unless $e->checkauth; return $e->die_event unless $e->allowed('IMPORT_MARC', $e->requestor->ws_ou); + my $override = $self->api_name =~ /override/; my $record = OpenILS::Application::Cat::BibCommon->biblio_record_xml_import( - $e, $xml, $source, $auto_tcn, $self->api_name =~ /override/, 1); + $e, $xml, $source, $auto_tcn, $override, 1); return $record if $U->event_code($record);