Skip to content

Commit

Permalink
Merge pull request #259 from vsimakhin/fix/258-upload-attachements-in…
Browse files Browse the repository at this point in the history
…-just-created-flight-entry

Fix: Attachments not uploaded if the new record saved and page wasn't…
  • Loading branch information
vsimakhin authored Oct 21, 2024
2 parents f021699 + aac813e commit 64c4a98
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion app/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (
)

const (
version = "2.43.0"
version = "2.43.1"

infoLogPrefix = "INFO\t"
errorLogPrefix = "ERROR\t"
Expand Down
2 changes: 2 additions & 0 deletions app/static/js/wlb-flight-record.js
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 64c4a98

Please sign in to comment.