Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Attachments not uploaded if the new record saved and page wasn't… #259

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading