#1175 1.3 Cash->Payment Internal Server Error

1.3
closed-fixed
nobody
None
5
2014-08-27
2014-06-19
Nick Prater
No

In 1.3.40, an Internal Server Error is triggered when posting a Cash->Payment.

To reproduce:
Go to Cash->Payment for that supplier
Enter an amount to pay (£101.20 in my case)
Click Update
Click Post - Gives an Internal Server Error

Server logs say:
Can't use string ("{101.2}") as an ARRAY ref while "strict refs" in use at LedgerSMB/DBObject/Payment.pm line 797.

This is similar to bug 1080, which was fixed in svn r6915.

The following patch fixes this:

--- Payment.pm.original 2014-06-10 15:04:54.000000000 +0100
+++ LedgerSMB/DBObject/Payment.pm 2014-06-19 17:34:59.000000000 +0100
@@ -794,7 +794,7 @@
$self->error($self->{locale}->text("Exchange rate inconsistency with database. Got [_1], expected [_2]", $self->{exrate}, $db_exchangerate));
}
}
- for (@{$self->{amount}}){
+ for ($self->_parse_array($self->{amount})){
$
= $->bstr if ref $;
}
my @TMParray = $self->exec_method(funcname => 'payment_post');

Discussion

  • Chris Travers

    Chris Travers - 2014-08-27

    This was fixed in 1.3.41. Sorry about the late closing of the bug report/

     
  • Chris Travers

    Chris Travers - 2014-08-27
    • status: open --> closed-fixed
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks