Bug 13531: QA follow up
authorThomas <tomsStudy@gmail.com>
Wed, 14 Jan 2015 20:20:36 +0000 (20:20 +0000)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Tue, 31 Mar 2015 13:56:14 +0000 (10:56 -0300)
A minor QA comment.

::: misc/migration_tools/bulkmarcimport.pl
@@ +271,5 @@
>          my ( $error, $results, $totalhits ) = C4::Search::SimpleSearch( $query, 0, 3, [$server] );
> +        # changed to warn so able to continue with one broken record
> +        if ( defined $error ) {
> +            warn "unable to search the database for duplicates : $error";
> +            next;

For consistency with the rest of the script, should this perhaps be:

next RECORD;

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
misc/migration_tools/bulkmarcimport.pl

index 0b0b27e..8838303 100755 (executable)
@@ -272,7 +272,7 @@ RECORD: while (  ) {
         # changed to warn so able to continue with one broken record
         if ( defined $error ) {
             warn "unable to search the database for duplicates : $error";
-            next;
+            next RECORD;
         }
         $debug && warn "$query $server : $totalhits";
         if ( $results && scalar(@$results) == 1 ) {