diff options
-rwxr-xr-x | LedgerSMB/CT.pm | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/LedgerSMB/CT.pm b/LedgerSMB/CT.pm index be768503..19c0411d 100755 --- a/LedgerSMB/CT.pm +++ b/LedgerSMB/CT.pm @@ -476,6 +476,9 @@ sub save_vendor { ($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 |