Skip to content

Commit

Permalink
Merge branch 'custom-label-mapping' into deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffersonBledsoe committed Sep 27, 2023
2 parents fb70fa9 + 2cf29d3 commit 3df03b6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def reply(self):
**field,
**submitted_field,
"dislpay_value_mapping": field.get(
"internal_value" # TODO: Rename frontend property passed in, internal_value doens't make sense
"display_values"
),
}
)
Expand Down Expand Up @@ -413,7 +413,7 @@ def attach_xml(self, msg):
xmlRoot = Element("form")

for field in self.filter_parameters():
SubElement(xmlRoot, "field", name=field.label).text = str(field.value)
SubElement(xmlRoot, "field", name=field.label).text = str(field._value)

doc = ElementTree(xmlRoot)
doc.write(output, encoding="utf-8", xml_declaration=True)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ def test_store_data(self):
"label": "Name",
"field_id": "name",
"field_type": "text",
"internal_value": "Custom name",
"display_values": "Custom name",
},
],
},
Expand Down Expand Up @@ -328,7 +328,7 @@ def test_display_values(self):
"field_id": "test-field",
"label": "Test field",
"field_type": "text",
"internal_value": {"John": "Paul", "Sally": "Jack"},
"display_values": {"John": "Paul", "Sally": "Jack"},
},
],
},
Expand Down

0 comments on commit 3df03b6

Please sign in to comment.