https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=31381
Bug ID: 31381
Summary: [Intranet/REST-API] Searching patrons by letter broken
when using non-mandatory extended attributes
Change sponsored?: ---
Product: Koha
Version: 22.05
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P5 - low
Component: REST API
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Hi,
searching for patrons by letter like this returns an empty list:
/cgi-bin/koha/members/members-home.pl?firstletter=A
I find the following in intranet-error.log:
[cgi:error] AH01215: [warn] OpenAPI >>> GET api/v1/patrons
[{"message":"Expected string - got
null.","path":"\\/body\\/10\\/extended_attributes\\/0\\/value"},{"message":"Expected
string - got null.","path":"\\/body\\/14\\/extended_attributes\\/0\\/value"}]:
/usr/share/koha/api/v1/app.pl, referer:
/cgi-bin/koha/members/members-home.pl?firstletter=A
We have defined a single extended attribute which isn't mandatory, so it might
not exist for some patrons. If I interpret "10" and "14" as representing
borrower_attributes.borrowernumber (table.attribute) values then "10" does
indeed lack an entry, but "14" has one. Not a smoking gun yet...
Maybe this is a regression due to this?
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=27857
Cheers
--
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/