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

SF.net SVN: ledger-smb: [778] branches/1.2/LedgerSMB/HR.pm



Revision: 778
          http://svn.sourceforge.net/ledger-smb/?rev=778&view=rev
Author:   einhverfr
Date:     2007-01-22 22:54:13 -0800 (Mon, 22 Jan 2007)

Log Message:
-----------
Fixed date NULL issues in HR.pm

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

Modified: branches/1.2/LedgerSMB/HR.pm
===================================================================
--- branches/1.2/LedgerSMB/HR.pm	2007-01-23 06:53:58 UTC (rev 777)
+++ branches/1.2/LedgerSMB/HR.pm	2007-01-23 06:54:13 UTC (rev 778)
@@ -154,7 +154,9 @@
 		       managerid = ?
 		 WHERE id = ?|;
 	$sth = $dbh->prepare($query);
-	$form->db_prepare_vars('dob', 'startdate', 'enddate');
+	$form->{dob} ||= undef;
+	$form->{startdate} ||= undef;
+	$form->{enddate} ||= undef;
 	$sth->execute(
 					$form->{employeenumber}, $form->{name}, $form->{address1},
 					$form->{address2}, $form->{city}, $form->{state},


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