fixup runtime warning
This commit is contained in:
parent
91a59d5f36
commit
877e946c0b
@ -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';
|
||||
|
Loading…
x
Reference in New Issue
Block a user