Browse Source

Bug 25535: Hold API mapping maps cancellationdate to cancelation_date, but it should be cancellation_date

Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
20.05.x
Kyle Hall 2 years ago
committed by Martin Renvoize
parent
commit
96b4f6802b
Signed by: martin.renvoize GPG Key ID: 422B469130441A0F
  1. 2
      Koha/Hold.pm
  2. 2
      api/v1/swagger/definitions/hold.json
  3. 2
      api/v1/swagger/paths/holds.json

2
Koha/Hold.pm

@ -416,7 +416,7 @@ sub to_api_mapping {
branchcode => 'pickup_library_id',
notificationdate => undef,
reminderdate => undef,
cancellationdate => 'cancelation_date',
cancellationdate => 'cancellation_date',
reservenotes => 'notes',
found => 'status',
itemnumber => 'item_id',

2
api/v1/swagger/definitions/hold.json

@ -22,7 +22,7 @@
"type": ["string", "null"],
"description": "Internal library identifier for the pickup library"
},
"cancelation_date": {
"cancellation_date": {
"type": ["string", "null"],
"format": "date",
"description": "The date the hold was cancelled"

2
api/v1/swagger/paths/holds.json

@ -37,7 +37,7 @@
"type": "string"
},
{
"name": "cancelation_date",
"name": "cancellation_date",
"in": "query",
"description": "The date the hold was cancelled",
"type": "string",

Loading…
Cancel
Save