8b685c1e80
The return from GetReservesFromBiblionumber contains an unnecessary extra variable. In scalar context an array returns its element count. Maintaining a separate count can lead to unforeseen bugs and imposes ugly constructions on the subroutine's users. Remove the useless count variable from the return This patch also changes the parameters: now the routine takes a hashref. Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> Placed biblio holds, future holds and item holds. Works as expected. Tested Holds.t and Reserves.t. Pass. Tested /cgi-bin/koha/ilsdi.pl?service=GetRecords&id=999 with two holds on one item. Fine. C4/SIP/ILS/Item.pm: Looked for "whatever" and "arrayref" and could not find them anymore. Looks good. Handled a few unneeded calls in QA follow-up. Left only one point to-do for serials/routing-preview.pl. See Bugzilla. Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> Signed-off-by: Galen Charlton <gmc@esilibrary.com> |
||
---|---|---|
.. | ||
acqui-search-result.pl | ||
acqui-search.pl | ||
checkexpiration.pl | ||
claims.pl | ||
create-numberpattern.pl | ||
lateissues-export.pl | ||
member-search.pl | ||
reorder_members.pl | ||
routing-preview.pl | ||
routing.pl | ||
serial-issues.pl | ||
serials-collection.pl | ||
serials-edit.pl | ||
serials-home.pl | ||
serials-recieve.pl | ||
serials-search.pl | ||
showpredictionpattern.pl | ||
statecollection.pl | ||
subscription-add.pl | ||
subscription-bib-search.pl | ||
subscription-detail.pl | ||
subscription-frequencies.pl | ||
subscription-frequency.pl | ||
subscription-history.pl | ||
subscription-numberpattern.pl | ||
subscription-numberpatterns.pl | ||
subscription-renew.pl | ||
viewalerts.pl |