[Koha-bugs] [Bug 24432] Request an endpoint with a date column in order by throws bad parameter exception

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Jan 16 00:18:42 CET 2020


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

--- Comment #4 from Agustín Moyano <agustinmoyano at theke.io> ---
Created attachment 97426
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=97426&action=edit
Bug 24432: Use Koha::Objects->from_api_mapping instead of attributes_from_api
to get the column name in Koha::REST::Plugins::Query->_build_order_atom

Use the mapping instead of building a fake hash only to get the key name.

To test:
1. apply this patch
2. prove t/Koha/REST/Plugin/Query.t
3. sign off

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


More information about the Koha-bugs mailing list