Correction to handle errors processing image file passed in from the patron details...
authorChris Nighswonger <cnighswonger@foundations.edu>
Wed, 5 Mar 2008 20:05:47 +0000 (09:05 +1300)
committerJoshua Ferraro <jmf@liblime.com>
Thu, 6 Mar 2008 12:25:15 +0000 (06:25 -0600)
Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
tools/picture-upload.pl

index 849e1e3..96e84ea 100755 (executable)
@@ -137,7 +137,7 @@ if ( $uploadfile ) {
        $template->param(filetype => $filetype );
 }
 
-if ( $borrowernumber ) {
+if ( $borrowernumber && !$errors && !$template->param('ERRORS') ) {
     my $urlbase = $input->url(-base => 1 -rewrite => 1);
     print $input->redirect ("/cgi-bin/koha/members/moremember.pl?borrowernumber=$borrowernumber");
 } else {