Bug 25535: Hold API mapping maps cancellationdate to cancelation_date, but it should...
authorKyle M Hall <kyle@bywatersolutions.com>
Mon, 18 May 2020 18:14:42 +0000 (14:14 -0400)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Tue, 19 May 2020 07:30:08 +0000 (08:30 +0100)
Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Koha/Hold.pm
api/v1/swagger/definitions/hold.json
api/v1/swagger/paths/holds.json

index 6896f5e..e8d9e0c 100644 (file)
@@ -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',
index dda3260..db4c90e 100644 (file)
@@ -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"
index e4e925d..847d3b8 100644 (file)
@@ -37,7 +37,7 @@
           "type": "string"
         },
         {
-          "name": "cancelation_date",
+          "name": "cancellation_date",
           "in": "query",
           "description": "The date the hold was cancelled",
           "type": "string",