Bug 24432: Use from_api_mapping to translate column name in _build_order_atom
authorAgustin Moyano <agustinmoyano@theke.io>
Wed, 15 Jan 2020 23:12:19 +0000 (20:12 -0300)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Thu, 23 Jan 2020 08:53:01 +0000 (08:53 +0000)
commit451bc0fca595f426257b4a790fc6f83cc10f32f9
tree1a51dcd3065d9c1f8663de53239bb978bea8e05e
parent62da76b84b4714851a1be3d33a565382d5d1037a
Bug 24432: Use from_api_mapping to translate column name in _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

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Koha/REST/Plugin/Query.pm