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

(-)a/koha-tmpl/intranet-tmpl/prog/js/fetch/system-preferences-api-client.js (-3 / +2 lines)
Lines 19-25 export class SysprefAPIClient extends HttpClient { Link Here
19
                    body: "pref_%s=%s".format(
19
                    body: "pref_%s=%s".format(
20
                        encodeURIComponent(variable),
20
                        encodeURIComponent(variable),
21
                        encodeURIComponent(value)
21
                        encodeURIComponent(value)
22
                    ),
22
                    ).concat('&csrf_token=', this.csrf_token),
23
                    headers: {
23
                    headers: {
24
                        "Content-Type":
24
                        "Content-Type":
25
                            "application/x-www-form-urlencoded;charset=utf-8",
25
                            "application/x-www-form-urlencoded;charset=utf-8",
Lines 37-43 export class SysprefAPIClient extends HttpClient { Link Here
37
                                : "%s=".format(variable)
37
                                : "%s=".format(variable)
38
                        )
38
                        )
39
                        .flat(Infinity)
39
                        .flat(Infinity)
40
                        .join("&"),
40
                        .join("&").concat('&csrf_token=', this.csrf_token),
41
                    headers: {
41
                    headers: {
42
                        "Content-Type":
42
                        "Content-Type":
43
                            "application/x-www-form-urlencoded;charset=utf-8",
43
                            "application/x-www-form-urlencoded;charset=utf-8",
44
- 

Return to bug 36700