]> git.koha-community.org Git - koha.git/commit
Bug 33289: Add API client class to interact with svc/config/systempreferences
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 21 Mar 2023 08:00:10 +0000 (09:00 +0100)
committerMatt Blenkinsop <matt.blenkinsop@ptfs-europe.com>
Mon, 17 Apr 2023 09:14:59 +0000 (09:14 +0000)
commit1d23b6ff36bf50c14928c40dbacb6a6ff33fcf67
tree15edfceb9abbad26c3cc753712632b439c36b8f0
parent14b799655cfcb28ad4a76d565dc0cd96aff0f902
Bug 33289: Add API client class to interact with svc/config/systempreferences

On bug 30708 we will need to modify sysprefs from the UI (Vue app), it
could be useful for other developments as well and so it is moved on its
own bug report.

Test plan:
It can be tested independently of bug 30708 using the following code:

const client = APIClient.sysprefs
client.sysprefs
    .update(
        "CardnumberLength",
        "42"
    )

Sponsored-by: BULAC - http://www.bulac.fr/
Signed-off-by: Pedro Amorim <pedro.amorim@ptfs-europe.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit 9597b88ed259470f2dc5d0a2be206cad6e0f3605)
Signed-off-by: Matt Blenkinsop <matt.blenkinsop@ptfs-europe.com>
koha-tmpl/intranet-tmpl/prog/js/vue/fetch/api-client.js
koha-tmpl/intranet-tmpl/prog/js/vue/fetch/system-preferences-api-client.js [new file with mode: 0644]