From 2ac654fa5358ba635c39ed82c4805f39c3e34dcc Mon Sep 17 00:00:00 2001 From: Joan Sanchez Date: Thu, 16 May 2019 12:33:41 +0200 Subject: [PATCH] parse scopeDays integer on ticket.index #1439 --- modules/ticket/front/index/index.js | 3 ++- modules/ticket/front/search-panel/index.html | 3 +-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/ticket/front/index/index.js b/modules/ticket/front/index/index.js index c616120df..4b58d9bd8 100644 --- a/modules/ticket/front/index/index.js +++ b/modules/ticket/front/index/index.js @@ -27,7 +27,7 @@ export default class Controller { this.$http.get(`/api/TicketConfigs/findOne`).then(res => { if (res.data) { this.filter = { - scopeDays: res.data.scopeDays + scopeDays: parseInt(res.data.scopeDays) }; } }); @@ -64,6 +64,7 @@ export default class Controller { onSearch(params) { if (params) { if (params.scopeDays) { + params.scopeDays = parseInt(params.scopeDays); this.scopeDays = params.scopeDays; this.buildFilterDates(); params = Object.assign(params, {from: this.today, to: this.daysOnward}); diff --git a/modules/ticket/front/search-panel/index.html b/modules/ticket/front/search-panel/index.html index 7e3267f45..70fa24e63 100644 --- a/modules/ticket/front/search-panel/index.html +++ b/modules/ticket/front/search-panel/index.html @@ -37,8 +37,7 @@ label="To" model="filter.to"> -