[Koha-bugs] [Bug 10169] Software error if one of multiple titles selected for hold in the OPAC has no items

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed May 1 21:50:19 CEST 2013


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=10169

--- Comment #1 from Owen Leonard <oleonard at myacpl.org> ---
Created attachment 17874
  -->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=17874&action=edit
Bug 10169 [Incomplete] Software error if one of multiple titles selected for
hold in the OPAC has no items

This patch contains changes suggested by Jared on IRC. This eliminates
the ugly error but raises a new problem: The 'Place hold' screen is now
blank except for a warning: "ERROR: No biblio record found for
biblionumber 5638."

The warning is triggered by the variable "bad_biblionumber," set here
(opac-reserve.pl lines 362+):

    # Get relevant biblio data.
    my $biblioData = $biblioDataHash{$biblioNum};
    if (! $biblioData) {
        $template->param(message=>1, bad_biblionumber=>$biblioNum);
        &get_out($query, $cookie, $template->output);
    }

I assume this is proper error-handling in the case of placing a single
hold, but has never been revised to accommodate multiple holds? Not sure
where to go next with it.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.


More information about the Koha-bugs mailing list