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

(-)a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/AgreementsList.vue (-7 / +6 lines)
Lines 200-205 export default { Link Here
200
        },
200
        },
201
        table_url: function () {
201
        table_url: function () {
202
            let url = "/api/v1/erm/agreements"
202
            let url = "/api/v1/erm/agreements"
203
            if (this.filters.by_expired) {
204
                if (!this.filters.max_expiration_date)
205
                    this.filters.max_expiration_date = new Date()
206
                        .toISOString()
207
                        .substring(0, 10)
208
            }
203
            if (this.filters.by_expired)
209
            if (this.filters.by_expired)
204
                url +=
210
                url +=
205
                    "?max_expiration_date=" + this.filters.max_expiration_date
211
                    "?max_expiration_date=" + this.filters.max_expiration_date
Lines 217-228 export default { Link Here
217
                )
223
                )
218
                this.$router.push(new_route)
224
                this.$router.push(new_route)
219
            }
225
            }
220
            if (this.filters.by_expired) {
221
                if (!this.filters.max_expiration_date)
222
                    this.filters.max_expiration_date = new Date()
223
                        .toISOString()
224
                        .substring(0, 10)
225
            }
226
            this.$refs.table.redraw(this.table_url())
226
            this.$refs.table.redraw(this.table_url())
227
        },
227
        },
228
        getTableColumns: function () {
228
        getTableColumns: function () {
229
- 

Return to bug 33490