From 478075a6c2d3e8d12d1b40189f0929ba40d70269 Mon Sep 17 00:00:00 2001 From: einhverfr Date: Tue, 17 Jul 2007 15:57:11 +0000 Subject: Fixed: Timecards ignore price matrix (bug 1754099) git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@1418 4979c152-3d1c-0410-bac9-87ea11338e46 --- LedgerSMB/JC.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/LedgerSMB/JC.pm b/LedgerSMB/JC.pm index c9addc51..936aeee2 100644 --- a/LedgerSMB/JC.pm +++ b/LedgerSMB/JC.pm @@ -138,7 +138,8 @@ sub jcitems_links { 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 -- cgit v1.2.3