summaryrefslogtreecommitdiff
path: root/LedgerSMB
diff options
context:
space:
mode:
authortetragon <tetragon@4979c152-3d1c-0410-bac9-87ea11338e46>2006-11-16 23:10:22 +0000
committertetragon <tetragon@4979c152-3d1c-0410-bac9-87ea11338e46>2006-11-16 23:10:22 +0000
commitf2dfc55c790ec2cc83c3a769920390af840ceec1 (patch)
treebcc809feb678b56c8ef7ccb5f6c458d6d44864aa /LedgerSMB
parent224c837f87a5bd951c39fecc1964622a5e660f54 (diff)
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
Diffstat (limited to 'LedgerSMB')
-rwxr-xr-xLedgerSMB/IC.pm4
1 files changed, 4 insertions, 0 deletions
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,