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

SF.net SVN: ledger-smb:[6081] branches/1.3/LedgerSMB.pm



Revision: 6081
          http://sourceforge.net/p/ledger-smb/code/6081
Author:   einhverfr
Date:     2013-09-26 03:12:22 +0000 (Thu, 26 Sep 2013)
Log Message:
-----------
applying '0' fix from trunk that was previously not believed to be applicable to 1.3, fixes bug 889

Modified Paths:
--------------
    branches/1.3/LedgerSMB.pm

Modified: branches/1.3/LedgerSMB.pm
===================================================================
--- branches/1.3/LedgerSMB.pm	2013-09-26 02:41:58 UTC (rev 6080)
+++ branches/1.3/LedgerSMB.pm	2013-09-26 03:12:22 UTC (rev 6081)
@@ -845,8 +845,8 @@
     while ( my $ref = $sth->fetchrow_hashref('NAME_lc') ) {
 	for (0 .. $#names){
             #   numeric            float4/real
-            $ref->{$names[$_]} ||=0;
             if ($types[$_] == 3 or $types[$_] == 2) {
+                $ref->{$names[$_]} ||=0;
                 $ref->{$names[$_]} = Math::BigFloat->new($ref->{$names[$_]});
             }
         }

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


------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60133471&iu=/4140/ostg.clktrk
_______________________________________________
Ledger-smb-commits mailing list
..hidden..
https://lists.sourceforge.net/lists/listinfo/ledger-smb-commits