From: Bill Erickson Date: Fri, 22 Jun 2012 15:18:26 +0000 (-0400) Subject: For API consistency, use 'oargs' for override args in circulate X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=6d9a63697a203170d6a504d35af1527f0f40973f;p=working%2FEvergreen.git For API consistency, use 'oargs' for override args in circulate Instead of 'override_args', use 'oargs', which is consistent with other code that supports overrides. Signed-off-by: Bill Erickson --- diff --git a/Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Circulate.pm b/Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Circulate.pm index f5c0f07bee..85c9b54591 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Circulate.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Circulate.pm @@ -193,7 +193,7 @@ __PACKAGE__->register_method( sub run_method { my( $self, $conn, $auth, $args ) = @_; translate_legacy_args($args); - $args->{override_args} = { all => 1 } unless defined $args->{override_args}; + $args->{oargs} = { all => 1 } unless defined $args->{oargs}; my $api = $self->api_name; my $circulator = @@ -541,7 +541,7 @@ my @AUTOLOAD_FIELDS = qw/ hold_as_transit fake_hold_dest limit_groups - override_args + oargs /; @@ -1369,7 +1369,7 @@ sub override_events { my $self = shift; my @events = @{$self->events}; return unless @events; - my $oargs = $self->override_args; + my $oargs = $self->oargs; if(!$self->override) { return $self->bail_out(1) @@ -1415,7 +1415,7 @@ sub handle_claims_returned { my $evt; # - If the caller has set the override flag, we will check the item in - if($self->override && ($self->override_args->{all} || grep { $_ eq 'CIRC_CLAIMS_RETURNED' } @{$self->override_args->{events}}) ) { + if($self->override && ($self->oargs->{all} || grep { $_ eq 'CIRC_CLAIMS_RETURNED' } @{$self->oargs->{events}}) ) { $CR->checkin_time('now'); $CR->checkin_scan_time('now');