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

--- Comment #1 from Martin Renvoize (ashimema) 
<[email protected]> ---
Created attachment 190922
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=190922&action=edit
Bug 41530: Rename item_type => item_type_id in transfer_limits API spec

Following the API consistency work in bug 41456, this patch renames
the item_type field to item_type_id in the transfer_limits API
endpoints and definitions.

The field should only be named item_type when it contains an embedded
object (type: object/null). When it contains a foreign key ID
(type: string/null), it should be named item_type_id for consistency.

Changes:
- Updated api/v1/swagger/definitions/transfer_limit.yaml
- Updated api/v1/swagger/paths/transfer_limits.yaml (including documentation)
- Updated Koha::Item::Transfer::Limit->to_api_mapping
- Updated Koha::REST::V1::TransferLimits error messages
- Updated t/db_dependent/api/v1/transfer_limits.t
- Updated koha-tmpl/intranet-tmpl/prog/en/modules/admin/transfer_limits.tt

Test plan:
1. Run API tests: prove t/db_dependent/api/v1/transfer_limits.t
2. Visit /cgi-bin/koha/admin/transfer_limits.pl
3. Select an item type from the dropdown
4. Check/uncheck transfer limits - verify they work correctly
5. Confirm the API requests use item_type_id field

-- 
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.
_______________________________________________
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