Skip to content

Commit

Permalink
Merge pull request AOT-Technologies#2544 from shuhaib-aot/Bugfix/FWF-…
Browse files Browse the repository at this point in the history
…4274-show-incorrect-version

Fixed: show incorrect version on save layout after edit import
  • Loading branch information
arun-s-aot authored Jan 23, 2025
2 parents 9ba766e + 963e687 commit 93005c5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""This exposes form process mapper service."""
# pylint: disable=too-many-lines

import json
import re
Expand Down
5 changes: 5 additions & 0 deletions forms-flow-api/src/formsflow_api/services/import_support.py
Original file line number Diff line number Diff line change
Expand Up @@ -750,7 +750,12 @@ def import_form_workflow(
selected_workflow_version,
)
if mapper_response:
major_version, minor_version = FormProcessMapperService.get_form_version(
mapper_response
)
mapper_response = FormProcessMapperSchema().dump(mapper_response)
mapper_response["majorVersion"] = major_version
mapper_response["minorVersion"] = minor_version
if task_variables := mapper_response.get("taskVariables"):
mapper_response["taskVariables"] = json.loads(task_variables)
response["mapper"] = mapper_response
Expand Down

0 comments on commit 93005c5

Please sign in to comment.