summaryrefslogtreecommitdiff
path: root/LedgerSMB/CT.pm
diff options
context:
space:
mode:
Diffstat (limited to 'LedgerSMB/CT.pm')
-rwxr-xr-xLedgerSMB/CT.pm3
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