From 877e946c0b3d1072de1f8d0e7b2d2b93bee5d17c Mon Sep 17 00:00:00 2001 From: Marek Isalski Date: Thu, 7 Feb 2019 00:41:14 +0000 Subject: [PATCH] fixup runtime warning --- fulcrm_shoppingcart.module | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fulcrm_shoppingcart.module b/fulcrm_shoppingcart.module index 6869741..0ce7884 100644 --- a/fulcrm_shoppingcart.module +++ b/fulcrm_shoppingcart.module @@ -719,11 +719,11 @@ function fulcrm_shoppingcart_buy_eventbookingtype_form( $form, &$form_state, $pe } if ( !$choices && ( variable_get( 'fulcrm_shoppingcart_event_itinerary', 'full' ) === 'elide' ) ) { - $form[ 'eventslots' ][ '#type' ] = 'container'; foreach ( $form[ 'eventslots' ] as $eventpart_id => $eventpart_form ) { $form[ 'eventslots' ][ $eventpart_id ][ '#value' ] = $form[ 'eventslots' ][ $eventpart_id ][ '#default_value' ]; $form[ 'eventslots' ][ $eventpart_id ][ '#type' ] = 'hidden'; } + $form[ 'eventslots' ][ '#type' ] = 'container'; } else { $form[ 'eventslots' ][ '#title' ] = 'Itinerary'; $form[ 'eventslots' ][ '#type' ] = 'fieldset';