Bug 24611: Fix wrong budget_id query param in /acquisitions/orders
authorTomas Cohen Arazi <tomascohen@theke.io>
Fri, 7 Feb 2020 12:51:10 +0000 (09:51 -0300)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Thu, 13 Feb 2020 15:55:50 +0000 (15:55 +0000)
This patch fixes the wrong query parameter that slipped on rewriting the
patches for the voted RFC.

To test:
1. Apply the tests patch
2. Run:
   $ kshell
  k$ prove t/db_dependent/api/v1/acquisitions_orders.t
=> FAIL: Tests fail because fund_id is not a valid query parameter
3. Apply this patch
4. Repeat (2)
=> SUCCESS: Tests pass!
5. Sign off :-D

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

api/v1/swagger/paths/acquisitions_orders.json

index fc614dd..a0232d8 100644 (file)
@@ -26,9 +26,9 @@
                     "type": "integer"
                 },
                 {
-                    "name": "budget_id",
+                    "name": "fund_id",
                     "in": "query",
-                    "description": "Identifier for the budget the order goes against",
+                    "description": "Identifier for the fund the order goes against",
                     "required": false,
                     "type": "integer"
                 },