my ($self, $card_retained, $blocked_card_msg) = @_;
my $u = $self->{user};
- my $e = $self->{editor};
+ my $e = $self->{editor} = OpenILS::SIP->reset_editor();
syslog('LOG_INFO', "Blocking user %s", $u->card->barcode );
- if(!$e->{xact}) { $e->reset; $e->{xact} = 1; }
-
return $self if $u->card->active eq 'f';
$u->card->active('f');
$self->{session} = OpenSRF::AppSession->create('open-ils.cstore');
if( ! $self->{session} ) {
- my $str = "Error creating storage session with OpenSRF::AppSession->create()!";
+ my $str = "Error creating cstore session with OpenSRF::AppSession->create()!";
$self->log(E, $str);
throw OpenSRF::EX::ERROR ($str);
}