From 38cd454512c623e8742cd254fd5a5a8f3e1ba9b9 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Mon, 12 May 2014 12:54:24 +0200 Subject: [PATCH] [PASSED QA] Bug 12230: maxsuspensiondays should be set to NULL if not set Signed-off-by: Paola Rossi Signed-off-by: Kyle M Hall --- admin/smart-rules.pl | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) 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.2.5