[Koha-bugs] [Bug 31381] [Intranet/REST-API] Searching patrons by letter broken when using non-mandatory extended attributes

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Aug 17 14:56:56 CEST 2022


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

--- Comment #6 from Jonathan Druart <jonathan.druart+koha at gmail.com> ---
If we need to fix this, we could apply this:

diff --git a/api/v1/swagger/definitions/patron_extended_attribute.yaml
b/api/v1/swagger/definitions/patron_extended_attribute.yaml
index 84343d258b1..adb42944b80 100644
--- a/api/v1/swagger/definitions/patron_extended_attribute.yaml
+++ b/api/v1/swagger/definitions/patron_extended_attribute.yaml
@@ -6,7 +6,9 @@ properties:
     type: integer
   type:
     description: Extended attribute type
-    type: string
+    type:
+      - string
+      - "null"
   value:
     description: Extended attribute value
     type:


And adjust the tests.

-- 
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.


More information about the Koha-bugs mailing list