View | Details | Raw Unified | Return to bug 38993
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/js/fetch/system-preferences-api-client.js (-3 / +2 lines)
Lines 14-23 export class SysprefAPIClient { Link Here
14
            update: (variable, value) =>
14
            update: (variable, value) =>
15
                this.httpClient.post({
15
                this.httpClient.post({
16
                    endpoint: "",
16
                    endpoint: "",
17
                    body: "pref_%s=%s&csrf_token=%s".format(
17
                    body: "pref_%s=%s".format(
18
                        encodeURIComponent(variable),
18
                        encodeURIComponent(variable),
19
                        encodeURIComponent(value),
19
                        encodeURIComponent(value)
20
                        csrf_token
21
                    ),
20
                    ),
22
                    headers: {
21
                    headers: {
23
                        "Content-Type":
22
                        "Content-Type":
(-)a/t/cypress/support/e2e.js (-2 / +1 lines)
Lines 1818-1824 mysql.addCommands(); Link Here
1818
1818
1819
Cypress.Commands.add("set_syspref", (variable, value) => {
1819
Cypress.Commands.add("set_syspref", (variable, value) => {
1820
    cy.window().then(win => {
1820
    cy.window().then(win => {
1821
        const client = win.APIClient.syspref;
1821
        const client = win.APIClient.sysprefs;
1822
        return client.sysprefs.update(variable, value);
1822
        return client.sysprefs.update(variable, value);
1823
    });
1823
    });
1824
});
1824
});
1825
- 

Return to bug 38993