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

SF.net SVN: ledger-smb:[2873] trunk/scripts



Revision: 2873
          http://ledger-smb.svn.sourceforge.net/ledger-smb/?rev=2873&view=rev
Author:   einhverfr
Date:     2010-02-09 18:53:59 +0000 (Tue, 09 Feb 2010)

Log Message:
-----------
Correcting errors with form validation routines

Modified Paths:
--------------
    trunk/scripts/recon.pl
    trunk/scripts/vouchers.pl

Modified: trunk/scripts/recon.pl
===================================================================
--- trunk/scripts/recon.pl	2010-02-09 17:53:08 UTC (rev 2872)
+++ trunk/scripts/recon.pl	2010-02-09 18:53:59 UTC (rev 2873)
@@ -100,6 +100,7 @@
         $recon->save();
     } else {
         $recon->{notice} = $recon->{_locale}->text('Data not saved.  Please update again.');
+    }
     my $template = LedgerSMB::Template->new( 
             user => $user, 
     	    template => 'reconciliation/search', 

Modified: trunk/scripts/vouchers.pl
===================================================================
--- trunk/scripts/vouchers.pl	2010-02-09 17:53:08 UTC (rev 2872)
+++ trunk/scripts/vouchers.pl	2010-02-09 18:53:59 UTC (rev 2873)
@@ -57,7 +57,7 @@
     my ($request) = shift @_;
     my $batch = LedgerSMB::Batch->new({base => $request});
     $batch->{batch_class} = $request->{batch_type};
-    if ($form->form_close){
+    if ($request->form_close){
         $batch->create;
         add_vouchers($batch);
     } else {


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