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

(-)a/koha-tmpl/intranet-tmpl/prog/js/vue/components/Preservation/TrainsFormAddItems.vue (-1 / +1 lines)
Lines 168-174 export default { Link Here
168
            const client = APIClient.item
168
            const client = APIClient.item
169
            let q = { "me.item_id": item_ids }
169
            let q = { "me.item_id": item_ids }
170
            await client.items
170
            await client.items
171
                .getAll(q, { headers: { "x-koha-embed": "biblio" } })
171
                .getAll(q, {}, { headers: { "x-koha-embed": "biblio" } })
172
                .then(
172
                .then(
173
                    items => {
173
                    items => {
174
                        this.items = items
174
                        this.items = items
(-)a/koha-tmpl/intranet-tmpl/prog/js/vue/fetch/item-api-client.js (-2 / +2 lines)
Lines 9-19 export class ItemAPIClient extends HttpClient { Link Here
9
9
10
    get items() {
10
    get items() {
11
        return {
11
        return {
12
            getAll: (query, params) =>
12
            getAll: (query, params, headers) =>
13
                this.getAll({
13
                this.getAll({
14
                    endpoint: "items",
14
                    endpoint: "items",
15
                    query,
15
                    query,
16
                    params,
16
                    params,
17
                    headers,
17
                }),
18
                }),
18
        };
19
        };
19
    }
20
    }
20
- 

Return to bug 30708