summaryrefslogtreecommitdiff
path: root/LedgerSMB
diff options
context:
space:
mode:
authortetragon <tetragon@4979c152-3d1c-0410-bac9-87ea11338e46>2006-11-30 21:50:34 +0000
committertetragon <tetragon@4979c152-3d1c-0410-bac9-87ea11338e46>2006-11-30 21:50:34 +0000
commitfb569c118e8e8525763a963b3cdb2df83461f582 (patch)
tree9c3a1ff29ff0809a8e386b5b5f26a6ab6a97493e /LedgerSMB
parentd929f9f7e49e9dd7068d62ac01c11520290fc383 (diff)
Fix posting query
git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@712 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})