Koha/t/db_dependent
Jonathan Druart 8b685c1e80 Bug 9823: Refactor return from GetReservesFromBiblionumber
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>
2014-01-30 16:19:55 +00:00
..
Acquisition Bug 11549: Add regression test 2014-01-23 16:17:24 +00:00
Circulation Bug 11338: add unit tests for DelItemCheck 2013-12-25 17:07:53 +00:00
data Bug 10684: add regression test 2013-11-14 18:04:39 +00:00
Koha Bug 11279: (follow-up) remove unnecessary check on number of quotes 2013-12-19 15:06:39 +00:00
Labels
LDAP
Members
Record
Reports
Serials
www
00-strict.t
Accounts.t
Acquisition.t Bug 11111: UT: SearchOrders returns keys basketgroupid and basketgroupname 2013-12-05 15:38:06 +00:00
Amazon.t
Auth.t Bug 10952: (follow-up) remove mention of KohaOpacRecentSearches cookie 2014-01-10 16:55:37 +00:00
Auth_SearchHistorySession.t Bug 10952: (follow-up) comments fixes and unit tests 2014-01-10 16:21:18 +00:00
Auth_with_cas.t
AuthoritiesMarc.t
BackgroundJob.t
Barcodes.t
Biblio.t
Bookseller.t Bug 11457: avoid spurious test failure in t/db_dependent/Bookseller.t 2014-01-09 19:09:56 +00:00
Borrower_Debarments.t Bug 2720: (follow-up) improve unit tests 2013-10-31 01:55:04 +00:00
Branch.t
Budgets.t Bug 8037: (follow-up) improve GetBudgetByOrderNumber test 2013-10-31 14:57:18 +00:00
Category.t Bug 11543: (followup) add one more test 2014-01-15 19:58:30 +00:00
check_sysprefs.t
Circulation.t Bug 11336: (follow-up) fix typo in previous follow-up 2014-01-06 16:16:22 +00:00
Circulation_Branch.t
Circulation_issue.t
Circulation_Issuingrule.t
Circulation_issuingrules.t
Circulation_OfflineOperation.t
Circulation_transfers.t Bug 11470: fix occassional spurious test failure in Circulation_transfers.t 2014-01-06 05:31:21 +00:00
ClassSource.t
Context.t
CourseReserves.t
Csv.t
External_BakerTaylor.t
Heading_MARC21.t
Holds.t Bug 9823: Refactor return from GetReservesFromBiblionumber 2014-01-30 16:19:55 +00:00
HoldsQueue.t
Holidays.t Bug 11112: (follow-up) repair Koha::Calendar->add_holiday() 2013-12-10 18:19:15 +00:00
ILSDI_Services.t
Installer.t Bug 11541: (follow-up) move Installer.t to t/db_dependent 2014-01-14 21:43:56 +00:00
Items.t
KitchenSinkPlugin.kpz
Koha.t
Koha_Authority.t
Koha_borrower_modifications.t
Koha_Database.t
Koha_template_plugin_Branches.t Bug 10626 - Remove doubled up TT plugins - Merge KohaBranchName and Branches 2013-12-14 01:05:56 +00:00
Koha_template_plugin_KohaDates.t
Languages.t Bug 11545: (follow-up) move Languages.t to t/db_dependent 2014-01-14 20:48:33 +00:00
Letters.t Bug 11208: regression test for failing SMS messages 2013-12-30 16:45:45 +00:00
Linker_FirstMatch.t
Log.t
MarcModificationTemplates.t Bug 8015: Add unit tests for SimpleMARC and MarcModificationTemplates routines 2013-10-31 22:50:11 +00:00
Members.t Bug 11221: (follow-up) test for NULL rather than empty string 2013-11-19 15:35:25 +00:00
Members_columns.t
PatronLists.t
Plugins.t
Ratings.t
Record.t Bug 11066: (follow-up) add regression test 2014-01-03 15:54:45 +00:00
RecordProcessor_EmbedSeeFromHeadings.t
Reports.t
Reports_Guided.t
ReportsGuided.t
Reserves.t Bug 9788: (follow-up) Unit tests for changed routine GetReservesFromItemnumber 2014-01-17 05:11:48 +00:00
rollingloans.t
RotatingCollections.t
Search.t Bug 11533: fix authority searching with no sorting when QueryParser is enabled 2014-01-24 14:02:48 +00:00
Search_SearchHistory.t
Serials.t Bug 7688: (follow-up) have Serials.t create its test subscription 2013-10-31 05:07:44 +00:00
Serials_2.t Bug 8435: (follow-up) handle lack of userenv gracefully 2013-10-31 15:29:42 +00:00
Service.t
ShelfBrowser.t
SIP_ILS.t
SQLHelper.t
SuggestionEngine_ExplodedTerms.t
Suggestions.t
sysprefs.t
Tags.t
UploadedFile.t
VirtualShelves.t
VirtualShelves_Page.t
XISBN.t Bug 11439: (follow-up) adjust for change in list returned by OCLC XISBN 2014-01-30 15:48:48 +00:00
zebra_config.pl Bug 11499: UT: Make zebra_setup.pl correctly set indexing mode 2014-01-10 15:42:23 +00:00