summaryrefslogtreecommitdiff
path: root/LedgerSMB
diff options
context:
space:
mode:
authoreinhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46>2007-01-23 06:54:13 +0000
committereinhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46>2007-01-23 06:54:13 +0000
commit03e09affa8be87ce5222151d8c74acd5f412dd3e (patch)
treebfe28f77a441cbd58295540f2cbfa61738c0cf06 /LedgerSMB
parente3835e70edeae706b99ce9128a9209eb66d36f7c (diff)
Fixed date NULL issues in HR.pm
git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/branches/1.2@778 4979c152-3d1c-0410-bac9-87ea11338e46
Diffstat (limited to 'LedgerSMB')
-rwxr-xr-xLedgerSMB/HR.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/LedgerSMB/HR.pm b/LedgerSMB/HR.pm
index 0b08b13f..186ac752 100755
--- a/LedgerSMB/HR.pm
+++ b/LedgerSMB/HR.pm
@@ -154,7 +154,9 @@ sub save_employee {
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},