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

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



Revision: 593
          http://svn.sourceforge.net/ledger-smb/?rev=593&view=rev
Author:   tetragon
Date:     2006-11-14 09:08:19 -0800 (Tue, 14 Nov 2006)

Log Message:
-----------
Fix db error when creating vendor without both dates set

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

Modified: trunk/LedgerSMB/CT.pm
===================================================================
--- trunk/LedgerSMB/CT.pm	2006-11-14 16:07:52 UTC (rev 592)
+++ trunk/LedgerSMB/CT.pm	2006-11-14 17:08:19 UTC (rev 593)
@@ -476,6 +476,9 @@
 	($null, $language_code) = split /--/, $form->{language};
 
 	$form->{vendornumber} = $form->update_defaults($myconfig, "vendornumber", $dbh) if ! $form->{vendornumber};
+	
+	$form->{startdate} = undef unless $form->{startdate};
+	$form->{enddate} = undef unless $form->{enddate};
 
 	$query = qq|
 		UPDATE vendor 


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