diff --git a/sources/PropertyTree/CollectionOfTrees.php b/sources/PropertyTree/CollectionOfTrees.php index 26fa3970f3..90d28d729c 100644 --- a/sources/PropertyTree/CollectionOfTrees.php +++ b/sources/PropertyTree/CollectionOfTrees.php @@ -49,7 +49,7 @@ class CollectionOfTrees extends AbstractProperty public function ToPHPFormBlock(&$aPHPFragments = []): string { - $sFormBlockClass = CollectionBlock::class; + $sFormBlockClass = $this->oCollectionType->GetFormBlockClass(); $sSubTreeClass = 'SubFormFor__'.$this->sIdWithPath;