From 0882de447c454348fa1e9bf06fe9b45ff0c4f9cf Mon Sep 17 00:00:00 2001 From: erickson Date: Fri, 4 Sep 2009 20:42:39 +0000 Subject: [PATCH] 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_0@13976 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/src/perlmods/OpenILS/Application/Cat.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); -- 2.11.0