summaryrefslogtreecommitdiff
path: root/LedgerSMB
diff options
context:
space:
mode:
authortetragon <tetragon@4979c152-3d1c-0410-bac9-87ea11338e46>2006-11-30 21:49:46 +0000
committertetragon <tetragon@4979c152-3d1c-0410-bac9-87ea11338e46>2006-11-30 21:49:46 +0000
commitfa23ace16816c74d3bbbe807c5e7ae08aa925824 (patch)
tree71410c7a205e215397b21e6011571966a7e191c0 /LedgerSMB
parentdcc33f473e6160b3fa001f0c5834b4f6384ff485 (diff)
Fix posting query
git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/branches/1.2@711 4979c152-3d1c-0410-bac9-87ea11338e46
Diffstat (limited to 'LedgerSMB')
-rwxr-xr-xLedgerSMB/GL.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/LedgerSMB/GL.pm b/LedgerSMB/GL.pm
index f9f33493..c2781669 100755
--- a/LedgerSMB/GL.pm
+++ b/LedgerSMB/GL.pm
@@ -127,9 +127,9 @@ sub post_transaction {
SET reference = |.$dbh->quote($form->{reference}).qq|,
description = |.$dbh->quote($form->{description}).qq|,
notes = |.$dbh->quote($form->{notes}).qq|,
- transdate = '$form->{transdate}',
- department_id = $department_id
- WHERE id = $form->{id}|;
+ transdate = ?,
+ department_id = ?
+ WHERE id = ?|;
$dbh->prepare($query);
$sth->execute($form->{transdate}, $department_id, $form->{id})