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

SF.net SVN: ledger-smb:[2638] trunk/bin/gl.pl



Revision: 2638
          http://ledger-smb.svn.sourceforge.net/ledger-smb/?rev=2638&view=rev
Author:   einhverfr
Date:     2009-06-10 17:00:53 +0000 (Wed, 10 Jun 2009)

Log Message:
-----------
Correcting backwards compatibility (API) issue with gl reports.

Modified Paths:
--------------
    trunk/bin/gl.pl

Modified: trunk/bin/gl.pl
===================================================================
--- trunk/bin/gl.pl	2009-06-10 01:18:50 UTC (rev 2637)
+++ trunk/bin/gl.pl	2009-06-10 17:00:53 UTC (rev 2638)
@@ -463,7 +463,9 @@
 
 sub generate_report {
     my $output_options = shift;
-    ($form->{accno}) = split /--/, $form->{account};
+    if ($form->{account}){
+        ($form->{accno}) = split /--/, $form->{account};
+    }
     $form->{sort} = "transdate" unless $form->{sort};
     $form->{amountfrom} = $form->parse_amount(\%myconfig, $form->{amountfrom});
     $form->{amountto} = $form->parse_amount(\%myconfig, $form->{amountto});


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