diff options
-rwxr-xr-x | LedgerSMB/HR.pm | 4 |
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}, |