Skip to content

Commit

Permalink
Changed usage of getChoiceLabel to prevent memory overload
Browse files Browse the repository at this point in the history
  • Loading branch information
tmwil committed Sep 7, 2022
1 parent fbbd469 commit c9cae76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion AutoDAGsExternalModule.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit c9cae76

Please sign in to comment.