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

SF.net SVN: ledger-smb: [1418] trunk/LedgerSMB/JC.pm



Revision: 1418
          http://svn.sourceforge.net/ledger-smb/?rev=1418&view=rev
Author:   einhverfr
Date:     2007-07-17 08:57:11 -0700 (Tue, 17 Jul 2007)

Log Message:
-----------
Fixed: Timecards ignore price matrix (bug 1754099)

Modified Paths:
--------------
    trunk/LedgerSMB/JC.pm

Modified: trunk/LedgerSMB/JC.pm
===================================================================
--- trunk/LedgerSMB/JC.pm	2007-07-17 15:55:29 UTC (rev 1417)
+++ trunk/LedgerSMB/JC.pm	2007-07-17 15:57:11 UTC (rev 1418)
@@ -138,7 +138,8 @@
         my $sth = $dbh->prepare($query);
         $sth->execute( $form->{project_id} );
 
-        if ( $sth->fetchrow_array ) {
+        ($parts_id, $form->{customer_id} ) = $sth->fetchrow_array ;
+        if ( $parts_id ) {
             $form->{project} = 'job';
             $query = qq|
 				SELECT id


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