Verify session before trying any transactions in SIP->pay_fee.
authorJason Stephenson <jstephenson@mvlc.org>
Mon, 26 Sep 2011 19:52:52 +0000 (15:52 -0400)
committerDan Scott <dscott@laurentian.ca>
Thu, 13 Oct 2011 04:09:48 +0000 (00:09 -0400)
Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
Signed-off-by: Dan Scott <dscott@laurentian.ca>
Open-ILS/src/perlmods/lib/OpenILS/SIP.pm

index acfa572..a6d3aab 100644 (file)
@@ -430,6 +430,8 @@ sub pay_fee {
     my ($self, $patron_id, $patron_pwd, $fee_amt, $fee_type,
        $pay_type, $fee_id, $trans_id, $currency) = @_;
 
+    $self->verify_session;
+
     my $xact = OpenILS::SIP::Transaction::FeePayment->new(authtoken => $self->{authtoken});
     my $patron = $self->find_patron($patron_id);