[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

SF.net SVN: ledger-smb:[2976] trunk/scripts/payment.pl



Revision: 2976
          http://ledger-smb.svn.sourceforge.net/ledger-smb/?rev=2976&view=rev
Author:   einhverfr
Date:     2010-03-22 16:00:49 +0000 (Mon, 22 Mar 2010)

Log Message:
-----------
Fixing xsrf handling payments detail screen.

Modified Paths:
--------------
    trunk/scripts/payment.pl

Modified: trunk/scripts/payment.pl
===================================================================
--- trunk/scripts/payment.pl	2010-03-21 23:39:47 UTC (rev 2975)
+++ trunk/scripts/payment.pl	2010-03-22 16:00:49 UTC (rev 2976)
@@ -355,6 +355,8 @@
     my ($request) = @_;
     my $payment =  LedgerSMB::DBObject::Payment->new({'base' => $request});
     $payment->get_payment_detail_data();
+    $payment->open_form();
+    $payment->{dbh}->commit;
     $payment->{grand_total} = 0;
     for (@{$payment->{contact_invoices}}){
         my $contact_total = 0;


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.