Skip to content

Commit

Permalink
hotfix: updated the xform in form fields (#1298)
Browse files Browse the repository at this point in the history
Co-authored-by: sujanadh <sujanadh07@gmail.com>
  • Loading branch information
Sujanadh and sujanadh authored Feb 28, 2024
1 parent c8dc95b commit 853bdf1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/backend/app/submissions/submission_routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -361,8 +361,8 @@ async def get_submission_form_fields(
task_list = await tasks_crud.get_task_id_list(db, project_id)
odk_credentials = await project_deps.get_odk_credentials(db, project_id)
odk_form = central_crud.get_odk_form(odk_credentials)
response = odk_form.form_fields(project.odkid, str(task_list[0]))
return response
xform = f"{project.project_name_prefix}_{task_list[0]}_{project.xform_title}"
return odk_form.form_fields(project.odkid, xform)


@router.get("/submission_table/{project_id}")
Expand Down

0 comments on commit 853bdf1

Please sign in to comment.