Bug 5347: Followup: FIX 2 bugs in lateorders
authorJonathan Druart <jonathan.druart@biblibre.com>
Fri, 13 Apr 2012 07:15:35 +0000 (09:15 +0200)
committerPaul Poulain <paul.poulain@biblibre.com>
Wed, 18 Apr 2012 15:05:23 +0000 (17:05 +0200)
1/ Failed to claim late orders (Can't use string as a HASH ref)
2/ Don't show the red error message after submit the form for claims

Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
1/ Fixed.
2/ Also fixed.

Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
acqui/lateorders.pl

index 031fc88..35ebec1 100755 (executable)
@@ -72,7 +72,7 @@ my $branch     = $input->param('branch');
 my $op         = $input->param('op');
 
 my @errors = ();
-if ( defined $delay and not $delay =~ /^\d{1,3}$/ ) {
+if ( $delay and not $delay =~ /^\d{1,3}$/ ) {
     push @errors, {delay_digits => 1, bad_delay => $delay};
 }