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

(-)a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/AgreementsList.vue (-3 / +3 lines)
Lines 121-127 export default { Link Here
121
                table_settings: this.agreement_table_settings,
121
                table_settings: this.agreement_table_settings,
122
                add_filters: true,
122
                add_filters: true,
123
                filters_options: {
123
                filters_options: {
124
                    1: () =>
124
                    2: () =>
125
                        this.vendors.map(e => {
125
                        this.vendors.map(e => {
126
                            e["_id"] = e["id"];
126
                            e["_id"] = e["id"];
127
                            e["_str"] = e["name"];
127
                            e["_str"] = e["name"];
Lines 275-285 export default { Link Here
275
                url +=
275
                url +=
276
                    "?max_expiration_date=" + this.filters.max_expiration_date;
276
                    "?max_expiration_date=" + this.filters.max_expiration_date;
277
277
278
            const vendorId = this.$route.query.vendor_id
278
            const vendorId = this.$route.query.vendor_id;
279
            if (vendorId) {
279
            if (vendorId) {
280
                url = this.filters.by_expired
280
                url = this.filters.by_expired
281
                    ? url + "&vendor_id=" + vendorId
281
                    ? url + "&vendor_id=" + vendorId
282
                    : url + "?vendor_id=" + vendorId
282
                    : url + "?vendor_id=" + vendorId;
283
            }
283
            }
284
            return url;
284
            return url;
285
        },
285
        },
(-)a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/LicensesList.vue (-7 / +6 lines)
Lines 75-88 export default { Link Here
75
                table_settings: this.license_table_settings,
75
                table_settings: this.license_table_settings,
76
                add_filters: true,
76
                add_filters: true,
77
                filters_options: {
77
                filters_options: {
78
                    1: () =>
78
                    2: () =>
79
                        this.vendors.map(e => {
79
                        this.vendors.map(e => {
80
                            e["_id"] = e["id"];
80
                            e["_id"] = e["id"];
81
                            e["_str"] = e["name"];
81
                            e["_str"] = e["name"];
82
                            return e;
82
                            return e;
83
                        }),
83
                        }),
84
                    3: () => this.map_av_dt_filter("av_license_types"),
84
                    4: () => this.map_av_dt_filter("av_license_types"),
85
                    4: () => this.map_av_dt_filter("av_license_statuses"),
85
                    5: () => this.map_av_dt_filter("av_license_statuses"),
86
                },
86
                },
87
                actions: {
87
                actions: {
88
                    0: ["show"],
88
                    0: ["show"],
Lines 117-127 export default { Link Here
117
        tableURL() {
117
        tableURL() {
118
            let url = "/api/v1/erm/licenses";
118
            let url = "/api/v1/erm/licenses";
119
119
120
            const vendorId = this.$route.query.vendor_id
120
            const vendorId = this.$route.query.vendor_id;
121
            if (vendorId) {
121
            if (vendorId) {
122
                url += "?vendor_id=" + vendorId
122
                url += "?vendor_id=" + vendorId;
123
            }
123
            }
124
            return url
124
            return url;
125
        },
125
        },
126
        async getSearchableAdditionalFields() {
126
        async getSearchableAdditionalFields() {
127
            const client = APIClient.additional_fields;
127
            const client = APIClient.additional_fields;
128
- 

Return to bug 39951