[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

SF.net SVN: ledger-smb: [626] branches/1.2/LedgerSMB/CT.pm



Revision: 626
          http://svn.sourceforge.net/ledger-smb/?rev=626&view=rev
Author:   tetragon
Date:     2006-11-15 16:18:40 -0800 (Wed, 15 Nov 2006)

Log Message:
-----------
Fix duplicate key violation in saving a customer

Modified Paths:
--------------
    branches/1.2/LedgerSMB/CT.pm

Modified: branches/1.2/LedgerSMB/CT.pm
===================================================================
--- branches/1.2/LedgerSMB/CT.pm	2006-11-16 00:17:45 UTC (rev 625)
+++ branches/1.2/LedgerSMB/CT.pm	2006-11-16 00:18:40 UTC (rev 626)
@@ -250,7 +250,7 @@
 		$sth = $dbh->prepare($query);
 		$sth->execute($form->{id}) || $form->dberror($query);
 
-		if (! $dbh->selectrow_array($query)) {
+		if (! $sth->fetchrow_array) {
 			$query = qq|
 				INSERT INTO customer (id)
 				     VALUES (?)|;


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.