Skip to content

Commit 0d12d12

Browse files
GOATS-1257 Fix missing program ID in 'Save to GOATS' payload (#601)
* GOATS-1257 Fix missing program ID in 'Save to GOATS' payload * Add towncrier entry.
1 parent cd8b9fb commit 0d12d12

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

docs/changes/601.bugfix.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fixed missing program ID in the 'Save to GOATS' payload.

src/goats_tom/static/js/gpp/gpp.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,7 @@ class GPPModel {
217217
async saveNormalObservation(formData) {
218218
// Append the target ID to the form data.
219219
formData.append("hiddenGoatsTargetIdInput", this.#targetId);
220+
formData.append("hiddenProgramIdInput", this.#activeProgram.id)
220221
return await this.#normalizeResponse(() =>
221222
this.#api.post(this.#gppSaveNormalObservationUrl, formData, {}, false),
222223
);

0 commit comments

Comments
 (0)