Bug 12230: (follow-up) maxsuspensiondays should be set to NULL if not set
authorJonathan Druart <jonathan.druart@biblibre.com>
Mon, 12 May 2014 10:54:24 +0000 (12:54 +0200)
committerGalen Charlton <gmc@esilibrary.com>
Mon, 26 May 2014 01:40:15 +0000 (01:40 +0000)
Signed-off-by: Paola Rossi <paola.rossi@cineca.it>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>

admin/smart-rules.pl

index c6692cb..b3c0727 100755 (executable)
@@ -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');