diff options
author | einhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46> | 2007-07-17 15:55:29 +0000 |
---|---|---|
committer | einhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46> | 2007-07-17 15:55:29 +0000 |
commit | f8dc7be89795df90ba69c366e84142f52a06223c (patch) | |
tree | 2261948a321c3b35af2726c75511779c7e25a490 /LedgerSMB | |
parent | 60114368ab6feb363114038265a8ae6f5b6706f4 (diff) |
Fixed: Timecards ignore price matrix (bug 1754099)
git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/branches/1.2@1417 4979c152-3d1c-0410-bac9-87ea11338e46
Diffstat (limited to 'LedgerSMB')
-rwxr-xr-x | LedgerSMB/JC.pm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/LedgerSMB/JC.pm b/LedgerSMB/JC.pm index c9addc51..dbcf916c 100755 --- a/LedgerSMB/JC.pm +++ b/LedgerSMB/JC.pm @@ -134,11 +134,11 @@ sub jcitems_links { if ( $form->{project_id} ) { $form->{orphaned} = 1; - $query = qq|SELECT parts_id FROM project WHERE id = ?|; + $query = qq|SELECT parts_id, customer_id FROM project WHERE id = ?|; 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 |