Derefrence fixed fields in handle_fee_paid user/jeff/lp_1015227_fixed_fields_in_handle_fee_paid
authorJeff Godin <jgodin@tadl.org>
Tue, 19 Jun 2012 18:12:56 +0000 (14:12 -0400)
committerJeff Godin <jgodin@tadl.org>
Tue, 19 Jun 2012 18:12:56 +0000 (14:12 -0400)
Properly dereference fixed fields in handle_fee_paid so that the ILS layer receives fixed fields fee type, payment type, currency type

Fixes LP 1015227

Signed-off-by: Jeff Godin <jgodin@tadl.org>
Sip/MsgType.pm

index 783bf63..abdeec2 100644 (file)
@@ -1055,7 +1055,7 @@ sub handle_end_patron_session {
 sub handle_fee_paid {
     my ($self, $server) = @_;
     my $ils = $server->{ils};
-    my ($trans_date, $fee_type, $pay_type, $currency) = $self->{fixed_fields};
+    my ($trans_date, $fee_type, $pay_type, $currency) = @{$self->{fixed_fields}};
     my $fields = $self->{fields};
     my ($fee_amt, $inst_id, $patron_id, $terminal_pwd, $patron_pwd);
     my ($fee_id, $trans_id);