Skip to content

Commit

Permalink
feat: Reduce NodeTypeField name to maximum 50 characters long.
Browse files Browse the repository at this point in the history
  • Loading branch information
roadiz-ci committed Mar 18, 2024
1 parent 4c8bc4e commit dca99f2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Forms/NodeSource/NodeSourceCustomFormType.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public function onPreSetData(FormEvent $event): void

$event->setData($this->managerRegistry
->getRepository(CustomForm::class)
->findByNodeAndField($nodeSource->getNode(), $nodeTypeField));
->findByNodeAndFieldName($nodeSource->getNode(), $nodeTypeField->getName()));
}

/**
Expand Down
4 changes: 2 additions & 2 deletions src/Forms/NodeSource/NodeSourceDocumentType.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,9 @@ public function onPreSetData(FormEvent $event): void

$event->setData($this->managerRegistry
->getRepository(Document::class)
->findByNodeSourceAndField(
->findByNodeSourceAndFieldName(
$nodeSource,
$nodeTypeField
$nodeTypeField->getName()
));
}

Expand Down

0 comments on commit dca99f2

Please sign in to comment.