diff --git a/AutoDAGsExternalModule.php b/AutoDAGsExternalModule.php index 8b72fb7..6ea2c12 100644 --- a/AutoDAGsExternalModule.php +++ b/AutoDAGsExternalModule.php @@ -30,7 +30,7 @@ function setDAGFromField($project_id, $record, $group_id, $dagFieldName){ $groupId = null; } else{ - $fieldLabel = $this->getChoiceLabel($dagFieldName, $fieldValue); + $fieldLabel = $this->getChoiceLabel($dagFieldName)[$fieldValue]; $groupName = $fieldLabel . self::LABEL_VALUE_SEPARATOR . $fieldValue;