summaryrefslogtreecommitdiff
path: root/LedgerSMB/IR.pm
diff options
context:
space:
mode:
authoreinhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46>2007-07-17 02:33:57 +0000
committereinhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46>2007-07-17 02:33:57 +0000
commit4111a678b93c0e0989d8f5b0a72b7b901d9d6c31 (patch)
tree394838f291ed62c0431b21bf5c474ae139a7124b /LedgerSMB/IR.pm
parent2f34e5a90afbe4c492fd02bb814aed4882215e87 (diff)
Fixing another cogs bug (1753360)
Previously committed fix for user@company login sessions continuing to time out git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/branches/1.2@1413 4979c152-3d1c-0410-bac9-87ea11338e46
Diffstat (limited to 'LedgerSMB/IR.pm')
-rwxr-xr-xLedgerSMB/IR.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/LedgerSMB/IR.pm b/LedgerSMB/IR.pm
index 2f799975..7dd38c3e 100755
--- a/LedgerSMB/IR.pm
+++ b/LedgerSMB/IR.pm
@@ -333,7 +333,7 @@ sub post_invoice {
WHERE i.parts_id = ?
AND (i.qty + i.allocated) > 0
ORDER BY transdate|;
- $sth = $dbh->prepare($query);
+ my $sth = $dbh->prepare($query);
$sth->execute( $form->{"id_$i"} )
|| $form->dberror($query);
@@ -363,7 +363,7 @@ sub post_invoice {
VALUES (?, ?, ?, ?,
?, ?)|;
- $sth = $dbh->prepare($query);
+ my $sth = $dbh->prepare($query);
$sth->execute(
$ref->{trans_id}, $ref->{inventory_accno_id},
$linetotal, $ref->{transdate},
@@ -385,7 +385,7 @@ sub post_invoice {
$sth->execute(
$ref->{trans_id}, $ref->{expense_accno_id},
$linetotal * -1, $ref->{transdate},
- $ref->{project_id}, $invoice_id
+ $:ref->{project_id}, $invoice_id
) || $form->dberror($query);
}