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

(-)a/koha-tmpl/intranet-tmpl/prog/js/vue/fetch/system-preferences-api-client.js (-2 / +5 lines)
Lines 16-22 export class SysprefAPIClient extends HttpClient { Link Here
16
            update: (variable, value) =>
16
            update: (variable, value) =>
17
                this.post({
17
                this.post({
18
                    endpoint: "",
18
                    endpoint: "",
19
                    body: "pref_%s=%s".format(variable, value),
19
                    body: "pref_%s=%s&csrf_token=%s".format(
20
                        variable,
21
                        value,
22
                        csrf_token
23
                    ),
20
                    headers: {
24
                    headers: {
21
                        "Content-Type":
25
                        "Content-Type":
22
                            "application/x-www-form-urlencoded;charset=utf-8",
26
                            "application/x-www-form-urlencoded;charset=utf-8",
23
- 

Return to bug 34369