From 0cc307d28ea15c7808c0948b7e9fd749c6aba3df Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Mon, 12 May 2014 12:54:24 +0200 Subject: [PATCH] Bug 12230: maxsuspensiondays should be set to NULL if not set --- admin/smart-rules.pl | 1 + 1 file changed, 1 insertion(+) diff --git a/admin/smart-rules.pl b/admin/smart-rules.pl index c6692cb..b3c0727 100755 --- a/admin/smart-rules.pl +++ b/admin/smart-rules.pl @@ -110,6 +110,7 @@ elsif ($op eq 'add') { my $fine = $input->param('fine'); my $finedays = $input->param('finedays'); my $maxsuspensiondays = $input->param('maxsuspensiondays'); + $maxsuspensiondays = undef if $maxsuspensiondays eq q||; my $firstremind = $input->param('firstremind'); my $chargeperiod = $input->param('chargeperiod'); my $maxissueqty = $input->param('maxissueqty'); -- 1.7.10.4