Skip to content

Commit

Permalink
avniproject/avni-webapp#1116 | Include QG name in concept usage respo…
Browse files Browse the repository at this point in the history
…nse if form element is part of QG
  • Loading branch information
1t5j0y committed Nov 1, 2024
1 parent 40a0848 commit d052b6a
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ public class FormUsageContract {
private String formElementGroupUUID;
private String formElementUUID;
private String formElementGroupName;
private String formElementQGGroupName;
private String formElementName;

static public FormUsageContract fromEntity(FormElement formElement) {
Expand All @@ -23,6 +24,7 @@ static public FormUsageContract fromEntity(FormElement formElement) {
formUsageContract.setFormName(form.getName());
formUsageContract.setFormUUID(form.getUuid());
formUsageContract.setFormElementGroupName(formElementGroup.getName());
formUsageContract.setFormElementQGGroupName(formElement.isPartOfQuestionGroup() ? formElement.getGroup().getName() : null);
formUsageContract.setformElementName(formElement.getName());
return formUsageContract;
}
Expand Down Expand Up @@ -82,5 +84,11 @@ public String getformElementName(){
return formElementName;
}

public String getFormElementQGGroupName() {
return formElementQGGroupName;
}

public void setFormElementQGGroupName(String formElementQGGroupName) {
this.formElementQGGroupName = formElementQGGroupName;
}
}

0 comments on commit d052b6a

Please sign in to comment.