diff --git a/public/modules/custom/grants_webform_print/src/Controller/GrantsWebformPrintController.php b/public/modules/custom/grants_webform_print/src/Controller/GrantsWebformPrintController.php index 1942ff75f..5d6e2707f 100644 --- a/public/modules/custom/grants_webform_print/src/Controller/GrantsWebformPrintController.php +++ b/public/modules/custom/grants_webform_print/src/Controller/GrantsWebformPrintController.php @@ -13,6 +13,7 @@ use Drupal\grants_orienteering_map\Element\OrienteeringMapComposite; use Drupal\grants_place_of_operation\Element\PlaceOfOperationComposite; use Drupal\grants_premises\Element\PremisesComposite; +use Drupal\grants_premises\Element\RentedPremiseComposite; use Drupal\grants_premises\Element\RentIncomeComposite; use Drupal\webform\Entity\Webform; use Drupal\webform\WebformTranslationManager; @@ -382,7 +383,8 @@ public function getTranslatedOptions(array $element, array $translatedFields): a */ public function getCompositeInputFields(array $element, array $translatedFields): array { $composite_inputs = match ($element['#type']) { - 'rented_premise_composite', 'premises_composite' => PremisesComposite::getCompositeElements($element), + 'rented_premise_composite' => RentedPremiseComposite::getCompositeElements($element), + 'premises_composite' => PremisesComposite::getCompositeElements($element), 'members_composite' => MembersComposite::getCompositeElements($element), 'club_section_composite' => ClubSectionComposite::getCompositeElements($element), 'orienteering_map_composite' => OrienteeringMapComposite::getCompositeElements($element),