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

Marcel de Rooy <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|BLOCKED                     |Failed QA

--- Comment #14 from Marcel de Rooy <[email protected]> ---
    foreach my $result( @{$pay_response->{renew_result}} ) {
        next unless $result->{itemnumber};
        my $item = Koha::Items->find({ itemnumber => $result->{itemnumber} });
        next unless $item;
        if ($result->{success}) {
            push @success, '"' . $item->biblio->title . '"';
        } else {
            push @fail, '"' . $item->biblio->title . '" : ' .
$failmap->{$result->{error}};
        }
    }

    my $msg = "";
    if (scalar @success > 0) {
        $msg.="The following items were renewed: " . join(", ", @success) . ".
";
    }
    if (scalar @fail > 0) {
        $msg.="The following items were not renewed: " . join(", ", @fail) .
".";
    }
    if (length $msg > 0) {
        $status->screen_msg($status->screen_msg . " $msg");
    }

It is clear that SIP should not crash on the lack of an itemnumber or an
invalid one. But the current adjustments are just silent ignores.
I would at least recommend to not just jump to the next renew outcome but
include these cases in the msg.

When looking at SIP and Accounts, I noticed that renew_item should already
crash on an invalid itemnumber:
    my $itemnumber = $self->item->itemnumber;
So I am wondering if your adjustments are enough? Or should we already do
something here too?

Is there any more information from syslog or so that you could share here about
the actual bug?
If the problem is caused by an invalid itemnumber, do we miss some FKs
somewhere in Accounts?
If the problem is related to the RenewAccruingItem preferences and the
resulting empty return, should we touch renew_fine too? 

Needs some feedback/adjustments

-- 
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