Bugzilla – Attachment 146681 Details for
Bug 32939
Have generic fetch functions in vue modules
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 32939: To be removed
Bug-32939-To-be-removed.patch (text/plain), 1.54 KB, created by
Jonathan Druart
on 2023-02-15 11:57:25 UTC
(
hide
)
Description:
Bug 32939: To be removed
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2023-02-15 11:57:25 UTC
Size:
1.54 KB
patch
obsolete
>From d84597f2c4e1edc11274e2fb3126510dd3eddbc2 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Wed, 15 Feb 2023 11:19:43 +0100 >Subject: [PATCH] Bug 32939: To be removed > >Re-add the function we removed earlier, to prevent failures. >This patch will be dropped later, when we will touch all the >occurrences. >--- > koha-tmpl/intranet-tmpl/prog/js/vue/fetch/erm.js | 15 +++++++++++++++ > 1 file changed, 15 insertions(+) > >diff --git a/koha-tmpl/intranet-tmpl/prog/js/vue/fetch/erm.js b/koha-tmpl/intranet-tmpl/prog/js/vue/fetch/erm.js >index 54e47337979..b267b52e796 100644 >--- a/koha-tmpl/intranet-tmpl/prog/js/vue/fetch/erm.js >+++ b/koha-tmpl/intranet-tmpl/prog/js/vue/fetch/erm.js >@@ -1,5 +1,20 @@ > import { setError } from "../messages"; > >+export const fetchAgreement = function (agreement_id) { >+ if (!agreement_id) return; >+ const apiUrl = "/api/v1/erm/agreements/" + agreement_id; >+ return myFetch(apiUrl, { >+ headers: { >+ "x-koha-embed": >+ "periods,user_roles,user_roles.patron,agreement_licenses,agreement_licenses.license,agreement_relationships,agreement_relationships.related_agreement,documents,agreement_packages,agreement_packages.package,vendor", >+ }, >+ }); >+}; >+ >+export const fetchAgreements = function () { >+ const apiUrl = "/api/v1/erm/agreements?_per_page=-1"; >+ return myFetch(apiUrl); >+}; > //TODO: all of these functions should be deleted and reimplemented in the components using ERMAPIClient > > export const fetchLicense = function (license_id) { >-- >2.25.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 32939
:
146470
|
146509
|
146642
|
146644
|
146645
|
146668
|
146669
|
146670
|
146671
|
146672
|
146674
|
146675
|
146676
|
146677
|
146678
|
146679
|
146680
|
146681
|
146682
|
147029
|
147030
|
147031
|
147032
|
147033
|
147034
|
147035
|
147036
|
147037
|
147038
|
147039
|
147040
|
147041
|
147042
|
147043
|
147044
|
147056
|
147057
|
147059
|
147060
|
147061
|
147062
|
147063
|
147064
|
147065
|
147066
|
147067
|
147068
|
147069
|
147070
|
147071
|
147072
|
147073
|
147306
|
147307
|
147308
|
147309
|
147310
|
147311
|
147312
|
147313
|
147314
|
147315
|
147316
|
147317
|
147318
|
147319
|
147320
|
147321
|
147322
|
147332
|
149441