Skip to content

Commit

Permalink
Handle frontend id format
Browse files Browse the repository at this point in the history
  • Loading branch information
folix-01 committed Jul 1, 2024
1 parent 073c342 commit faf2484
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ Changelog
2.7.2 (unreleased)
------------------

- Nothing changed yet.
- Handle field id format used by frontend logics.
[folix-01]


2.7.1 (2024-07-01)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,8 @@ def get_subject(self):
)

for i in self.form_data.get("data", []):
field_id = i.get("field_id")
# Handle this kind of id format: `field_name_123321, whichj is used by frontend package logics
field_id = i.get("field_id").split("_")[-1]

if not field_id:
continue
Expand Down

0 comments on commit faf2484

Please sign in to comment.