summaryrefslogtreecommitdiff
path: root/LedgerSMB/GL.pm
diff options
context:
space:
mode:
Diffstat (limited to 'LedgerSMB/GL.pm')
-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})