From f2dfc55c790ec2cc83c3a769920390af840ceec1 Mon Sep 17 00:00:00 2001 From: tetragon Date: Thu, 16 Nov 2006 23:10:22 +0000 Subject: Change empty string to undef for query git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/branches/1.2@645 4979c152-3d1c-0410-bac9-87ea11338e46 --- LedgerSMB/IC.pm | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'LedgerSMB') diff --git a/LedgerSMB/IC.pm b/LedgerSMB/IC.pm index 11fcf9c4..3113faf2 100755 --- a/LedgerSMB/IC.pm +++ b/LedgerSMB/IC.pm @@ -548,6 +548,10 @@ sub save { ($null, $pricegroup_id) = split /--/, $form->{"pricegroup_$i"}; + my $validfrom; + my $validto; + $validfrom = $form->{"validfrom_$i"} if $form->{"validfrom_$i"}; + $validto = $form->{"validto_$i"} if $form->{"validto_$i"}; $query = qq| INSERT INTO partscustomer (parts_id, customer_id, -- cgit v1.2.3