https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20551

--- Comment #114 from Arthur Suzuki <[email protected]> ---
Also I had some errors in the record_iterator sub.
Fixed by explicitely using $deleted_record_id instead of $_ :

        my $records_iterator = sub {
            if (my $record_id = pop(@record_ids)) {
                return _get_record_for_export( { %{$params}, record_id =>
$record_id } );
            }
            elsif (my $deleted_record_id = pop(@deleted_record_ids)) {
                return _get_record_for_export(
                    {
                        %{$params},
                        record_type => 'deleted_bibs',
-                       record_id   => $_,
+                       record_id   => $deleted_record_id,
                        resultset   => $deleted_resultset
                    }
                );
            }
            return;
        };

I guess the previous error was due to no biblionumber being passed to the
_get_record_for_export sub.

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to