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

(-)a/koha-tmpl/intranet-tmpl/prog/js/vue/fetch/authorised-values-api-client.js (-1 / +9 lines)
Lines 22-27 export class AVAPIClient extends HttpClient { Link Here
22
                    headers: {
22
                    headers: {
23
                        "x-koha-embed": "authorised_values",
23
                        "x-koha-embed": "authorised_values",
24
                    },
24
                    },
25
                }).then(av_categories => {
26
                    av_categories.forEach(av_category => {
27
                        av_category.authorised_values =
28
                            av_category.authorised_values.map(av => ({
29
                                ...av,
30
                                description: av.description || av.value,
31
                            }));
32
                    });
33
                    return av_categories;
25
                }),
34
                }),
26
        };
35
        };
27
    }
36
    }
28
- 

Return to bug 34920