summaryrefslogtreecommitdiff
path: root/LedgerSMB/JC.pm
diff options
context:
space:
mode:
Diffstat (limited to 'LedgerSMB/JC.pm')
-rw-r--r--LedgerSMB/JC.pm3
1 files changed, 2 insertions, 1 deletions
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