diff --git a/CHANGELOG.md b/CHANGELOG.md index 6b6ce3b..907d8c3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## [2.43.1] - 21.10.2024 + +- Fix: Attachments not uploaded if the new record saved and page wasn't reloaded + ## [2.43.0] - 10.10.2024 - Update: Updated golang version to the latest 1.23.2 and required packages. diff --git a/README.md b/README.md index 398cc2a..6d97adb 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.1] - 21.10.2024 + +- Fix: Attachments not uploaded if the new record saved and page wasn't reloaded + ## [2.43.0] - 10.10.2024 - Update: Updated golang version to the latest 1.23.2 and required packages. diff --git a/app/main.go b/app/main.go index 2ae36a2..2d072a5 100644 --- a/app/main.go +++ b/app/main.go @@ -20,7 +20,7 @@ import ( ) const ( - version = "2.43.0" + version = "2.43.1" infoLogPrefix = "INFO\t" errorLogPrefix = "ERROR\t" diff --git a/app/static/js/wlb-flight-record.js b/app/static/js/wlb-flight-record.js index f714be0..2a16ca7 100644 --- a/app/static/js/wlb-flight-record.js +++ b/app/static/js/wlb-flight-record.js @@ -435,6 +435,8 @@ const flightRecordUtils = function () { if (commonUtils.getElementValue("uuid") === "") { // set new uuid commonUtils.setElementValue("uuid", data.data); + // set uuid for attachments form + commonUtils.setElementValue("record_id", data.data); // show buttons document.getElementById("attach_button").classList.remove("d-none");