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

--- Comment #5 from Lisette Scheer <[email protected]> ---
Created attachment 206943
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=206943&action=edit
Bug 43606: Make print_collection accept a hashref

This patch changes Koha::Objects::Record::Collections->print_collection
to take a hashref instead of a positional format string, so it can be
extended with new options without further signature changes.

All callers are converted accordingly:
- Koha::REST::V1::Biblios
- Koha::REST::V1::DeletedBiblios
- Koha::REST::V1::Authorities

There are no functional changes; the generated output is identical.

Test plan:
1. Apply this patch
2. Run:
   $ ktd --shell
   k$ yarn api:bundle
   k$ prove t/db_dependent/Koha/Objects/Record/Collections.t \
            t/db_dependent/api/v1/biblios.t \
            t/db_dependent/api/v1/deleted_biblios.t \
            t/db_dependent/api/v1/authorities.t
=> SUCCESS: Tests pass!
3. Sign off :-D

Signed-off-by: Lisette Scheer <[email protected]>

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to