medic/cht-stock-monitoring-workflow

User group is added outside `inputs` group sometime

Closed this issue · 0 comments

Step To Reproduce

  1. Have a form which that has, but make sure it does not contain the user group:
type name label
begin group inputs NO_LABEL
... ... ...
end group inputs NO_LABEL
  1. Use the form in one of the stock-monitoring feature

  2. Run the build command

  3. See the result the new user group added that should contain facility_id and other details is right below end group of inputs:

type name label
begin group inputs NO_LABEL
... ... ...
end group inputs NO_LABEL
begin group user NO_LABEL
hidden contact_id NO_LABEL
end group user NO_LABEL

Note

Please note that this is issue does not occur when containing group (here inputs) does not have a value in its name column

eg: This example does not reproduce the issue raised

type name label
begin group inputs NO_LABEL
... ... ...
end group NO_LABEL