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

SF.net SVN: ledger-smb: [625] trunk/LedgerSMB/CT.pm



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

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

Modified Paths:
--------------
    trunk/LedgerSMB/CT.pm

Modified: trunk/LedgerSMB/CT.pm
===================================================================
--- trunk/LedgerSMB/CT.pm	2006-11-15 23:23:54 UTC (rev 624)
+++ trunk/LedgerSMB/CT.pm	2006-11-16 00:17:45 UTC (rev 625)
@@ -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.