]> git.koha-community.org Git - koha.git/commit
Bug 24502: object.search also filter by prefetched columns
authorAgustin Moyano <agustinmoyano@theke.io>
Sat, 25 Jan 2020 02:59:32 +0000 (23:59 -0300)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Tue, 3 Mar 2020 09:16:55 +0000 (09:16 +0000)
commit755d82015d78d4d0c8d33770e93db9bdd63cd587
treee576bee86451cd8ccd62f95227134fef6451e73c
parentab94a12ee46c511b5c09326d37925081996f89aa
Bug 24502: object.search also filter by prefetched columns

This patch adds the possibility to object.search helper, to also filter by prefetched columns.

In order to dynamically add filter parameters, they must be coded as json and placed in the body of the request, coded as string in 'q' query parameter or as string in 'x-koha-query' header.

The coded json, is in fact dbix syntax.

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

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Koha/REST/Plugin/Objects.pm
Koha/REST/Plugin/Query.pm
t/Koha/REST/Plugin/Query.t
t/db_dependent/Koha/REST/Plugin/Objects.t