From 693712a143fd41d608e7272edb79fec730a31e40 Mon Sep 17 00:00:00 2001 From: Vladimir Simakhin Date: Mon, 21 Oct 2024 09:33:20 +0200 Subject: [PATCH] Fix error when changing a year --- CHANGELOG.md | 4 ++++ README.md | 4 ++++ app/main.go | 2 +- app/static/js/wlb-stats-totals-month.js | 2 +- 4 files changed, 10 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 907d8c3..c37bf8e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## [2.43.2] - 21.10.2024 + +- Fix: Error on `Total by Month` page when changing a year in Chrome and MS Edge browsers. + ## [2.43.1] - 21.10.2024 - Fix: Attachments not uploaded if the new record saved and page wasn't reloaded diff --git a/README.md b/README.md index 6d97adb..64073a9 100644 --- a/README.md +++ b/README.md @@ -15,6 +15,10 @@ You also can easily export all flight records into EASA style pdf format, print # Changelog +## [2.43.2] - 21.10.2024 + +- Fix: Error on `Total by Month` page when changing a year in Chrome and MS Edge browsers. + ## [2.43.1] - 21.10.2024 - Fix: Attachments not uploaded if the new record saved and page wasn't reloaded diff --git a/app/main.go b/app/main.go index 2d072a5..3c2fe78 100644 --- a/app/main.go +++ b/app/main.go @@ -20,7 +20,7 @@ import ( ) const ( - version = "2.43.1" + version = "2.43.2" infoLogPrefix = "INFO\t" errorLogPrefix = "ERROR\t" diff --git a/app/static/js/wlb-stats-totals-month.js b/app/static/js/wlb-stats-totals-month.js index 337d949..252aee5 100644 --- a/app/static/js/wlb-stats-totals-month.js +++ b/app/static/js/wlb-stats-totals-month.js @@ -3,7 +3,7 @@ const statsTotalsByMonth = function () { const yearChange = async () => { const api = await commonUtils.getApi('StatsTotalsByMonthYearPage'); - year = commonUtils.getElementValue("year"); + const year = commonUtils.getElementValue("year"); window.location.href = api.replace('{year}', year); }