Bug 25845: Add 'api' to the log viewer interface options
commit15d043d6a6d553dcb3de50e1bf31154dd7ec90a0
authorTomas Cohen Arazi <tomascohen@theke.io>
Tue, 23 Jun 2020 14:06:55 +0000 (23 11:06 -0300)
committerLucas Gass <lucas@bywatersolutions.com>
Tue, 28 Jul 2020 15:18:45 +0000 (28 15:18 +0000)
tree74fc6e9c64347fb3f022e02e77c279482b5a71e6
parent7802e319fcf50fba97aecf9b3bcc7e3ab9f5e8fe
Bug 25845: Add 'api' to the log viewer interface options

This patch simply adds the API option to the log viewer.

To test:
1. Have BorrowersLog set
2. Update some patron using the API. For example
   curl --location --request PUT 'http://koha:koha@kohadev-intra.mydnsname.org:8081/api/v1/patrons/1' \
--header 'Content-Type: application/json' \
--data-raw '{
"firstname": "Tomasito",
"surname": "None",
"address": "Address",
"category_id": "ST",
"city": "Córdoba",
"library_id": "MPL"
}'
3. Open the log viewer
=> FAIL: There's no way to filter on interface, choosing API
4. Apply this patch
5. Reload the log viewer
=> SUCCESS: There are options to filter by 'API' interface
=> SUCCESS: Filtering by 'API' works
6. Sign off :-D

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit 9b526483c65550c0f36eabad70055bed79a8197c)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
koha-tmpl/intranet-tmpl/prog/en/modules/tools/viewlog.tt