summaryrefslogtreecommitdiff
path: root/LedgerSMB
diff options
context:
space:
mode:
authoreinhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46>2007-06-21 18:29:25 +0000
committereinhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46>2007-06-21 18:29:25 +0000
commit40ca34593f24b6a77ad9bdeb64be17fc5d2d8bf1 (patch)
tree820397d4030e5774faa9ccab3e9458b7b7c5cea3 /LedgerSMB
parentddc21cdfb551487cdf0a247064ad09c7646ce253 (diff)
Fixing placeholder error saving project
git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/branches/1.2@1289 4979c152-3d1c-0410-bac9-87ea11338e46
Diffstat (limited to 'LedgerSMB')
-rwxr-xr-xLedgerSMB/PE.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/LedgerSMB/PE.pm b/LedgerSMB/PE.pm
index 49d1a385..24247670 100755
--- a/LedgerSMB/PE.pm
+++ b/LedgerSMB/PE.pm
@@ -236,6 +236,8 @@ sub save_project {
$sth->execute( $form->{projectnumber},
$form->{description}, $startdate, $enddate, $form->{customer_id} )
|| $form->dberror($query);
+ $query = "SELECT currval('id')";
+ ($form->{id}) = $dbh->selectrow_array($query) || $form->dberror($query);
$form->run_custom_queries( 'project', 'UPDATE' );
$dbh->commit;