Bugzilla – Attachment 163492 Details for
Bug 36351
CSRF Adjustments for Cataloguing editor
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 36351: Pretty the api-client
Bug-36351-Pretty-the-api-client.patch (text/plain), 2.02 KB, created by
Jonathan Druart
on 2024-03-20 05:10:12 UTC
(
hide
)
Description:
Bug 36351: Pretty the api-client
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2024-03-20 05:10:12 UTC
Size:
2.02 KB
patch
obsolete
>From 293e677a46d89e80b7ab05a7cd6f22abbffa82a6 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Wed, 20 Mar 2024 06:09:24 +0100 >Subject: [PATCH] Bug 36351: Pretty the api-client > >Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >--- > .../prog/js/fetch/cataloguing-api-client.js | 16 +++++++++------- > 1 file changed, 9 insertions(+), 7 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/js/fetch/cataloguing-api-client.js b/koha-tmpl/intranet-tmpl/prog/js/fetch/cataloguing-api-client.js >index d6d1d1b45df..8f3f4748e27 100644 >--- a/koha-tmpl/intranet-tmpl/prog/js/fetch/cataloguing-api-client.js >+++ b/koha-tmpl/intranet-tmpl/prog/js/fetch/cataloguing-api-client.js >@@ -11,25 +11,27 @@ export class CataloguingAPIClient extends HttpClient { > return { > create: bib_info => > this.post({ >- endpoint: "new_bib/frameworkcode=%s".format( bib_info.frameworkcode ), >+ endpoint: "new_bib/frameworkcode=%s".format( >+ bib_info.frameworkcode >+ ), > body: bib_info.record.toXML(), > headers: { >- "Content-Type": >- "text/xml", >+ "Content-Type": "text/xml", > }, > }), > update: bib_info => > this.post({ >- endpoint: "bib/%s?frameworkcode=%s".format( bib_info.id, bib_info.frameworkcode ), >+ endpoint: "bib/%s?frameworkcode=%s".format( >+ bib_info.id, >+ bib_info.frameworkcode >+ ), > body: bib_info.record.toXML(), > headers: { >- "Content-Type": >- "text/xml", >+ "Content-Type": "text/xml", > }, > }), > }; > } >- > } > > export default CataloguingAPIClient; >-- >2.34.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 36351
:
163362
|
163364
|
163387
|
163388
|
163457
|
163458
|
163459
|
163489
|
163490
|
163491
| 163492