Skip to content

Commit

Permalink
change the way fieldPredicate value is found
Browse files Browse the repository at this point in the history
  • Loading branch information
smutniak committed Apr 22, 2024
1 parent 4813dde commit 7b4a7b8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public EmailRecipientContact(String label, FieldPredicate fieldPredicate) {
@Override
public List<String> getEmails(Submission submission) {
List<String> emails = new ArrayList<String>();
for (FieldValue fv : submission.getFieldValuesByPredicate(getFieldPredicate())) {
for (FieldValue fv : submission.getFieldValuesByPredicateValue(getFieldPredicate().getValue())) {
LOG.debug("Looking at field value " + fv.getValue() + "(" + fv.getId() + ") gotten from submission " + submission.getId() + "'s predicates matching " + getFieldPredicate().getValue() + "(" + getFieldPredicate().getId());
for (String contact : fv.getContacts()) {
LOG.debug("That field value has a contact value of " + contact);
Expand Down

0 comments on commit 7b4a7b8

Please sign in to comment.