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

(-)a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/AgreementsList.vue (-2 / +4 lines)
Lines 214-220 export default { Link Here
214
                            '<a href="/cgi-bin/koha/erm/agreements/' +
214
                            '<a href="/cgi-bin/koha/erm/agreements/' +
215
                            row.agreement_id +
215
                            row.agreement_id +
216
                            '" class="show">' +
216
                            '" class="show">' +
217
                            row.name +
217
                            escape_str(row.name) +
218
                            "</a>"
218
                            "</a>"
219
                        )
219
                        )
220
                    },
220
                    },
Lines 225-231 export default { Link Here
225
                    searchable: true,
225
                    searchable: true,
226
                    orderable: true,
226
                    orderable: true,
227
                    render: function (data, type, row, meta) {
227
                    render: function (data, type, row, meta) {
228
                        return row.vendor_id != undefined ? row.vendor.name : ""
228
                        return row.vendor_id != undefined
229
                            ? escape_str(row.vendor.name)
230
                            : ""
229
                    },
231
                    },
230
                },
232
                },
231
                {
233
                {
(-)a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/LicensesList.vue (-2 / +4 lines)
Lines 140-146 export default { Link Here
140
                            '<a href="/cgi-bin/koha/erm/licenses/' +
140
                            '<a href="/cgi-bin/koha/erm/licenses/' +
141
                            row.license_id +
141
                            row.license_id +
142
                            '" class="show">' +
142
                            '" class="show">' +
143
                            row.name +
143
                            escape_str(row.name) +
144
                            "</a>"
144
                            "</a>"
145
                        )
145
                        )
146
                    },
146
                    },
Lines 151-157 export default { Link Here
151
                    searchable: true,
151
                    searchable: true,
152
                    orderable: true,
152
                    orderable: true,
153
                    render: function (data, type, row, meta) {
153
                    render: function (data, type, row, meta) {
154
                        return row.vendor_id != undefined ? row.vendor.name : ""
154
                        return row.vendor_id != undefined
155
                            ? escape_str(row.vendor.name)
156
                            : ""
155
                    },
157
                    },
156
                },
158
                },
157
159
(-)a/koha-tmpl/intranet-tmpl/prog/js/vue/components/KohaTable.vue (-1 / +11 lines)
Lines 50-55 export default { Link Here
50
                },
50
                },
51
                buttons,
51
                buttons,
52
                search: { search: this.$route.query.q },
52
                search: { search: this.$route.query.q },
53
                columnDefs: [
54
                    {
55
                        targets: "_all",
56
                        render: function (data, type, row, meta) {
57
                            if (type == "display") {
58
                                return escape_str(data)
59
                            }
60
                            return data
61
                        },
62
                    },
63
                ],
53
                ...this.options,
64
                ...this.options,
54
            },
65
            },
55
            hidden_ids,
66
            hidden_ids,
56
- 

Return to bug 33066