fixup runtime warnings

master
Marek Isalski 5 years ago
parent 3b476d3868
commit b18bf0dab7

@ -552,6 +552,7 @@ function fulcrm_shoppingcart_buy_eventbookingtype_form( $form, &$form_state, $pe
'#options' => $persons, '#options' => $persons,
); );
} else { } else {
$form[ 'ticket_for_persons' ] = array( '#options' => array() );
if ( $eventbookingtype[ 'person_ddatacollection' ] ) { if ( $eventbookingtype[ 'person_ddatacollection' ] ) {
$collection_id = $eventbookingtype[ 'person_ddatacollection' ][ 'id' ]; $collection_id = $eventbookingtype[ 'person_ddatacollection' ][ 'id' ];
$collection_data = fulcrm_apiv2_GET( 'ddatacollection/' . $collection_id . '/' ); $collection_data = fulcrm_apiv2_GET( 'ddatacollection/' . $collection_id . '/' );
@ -562,9 +563,7 @@ function fulcrm_shoppingcart_buy_eventbookingtype_form( $form, &$form_state, $pe
$form[ '#submit' ] = 'fulcrm_shoppingcart_buy_eventbookingtype_person_add_guest_form_submit'; $form[ '#submit' ] = 'fulcrm_shoppingcart_buy_eventbookingtype_person_add_guest_form_submit';
} }
$form[ 'eventslots' ] = array( '#title' => 'Itinerary', $form[ 'eventslots' ] = array();
'#type' => 'fieldset',
);
$eventslots = array(); $eventslots = array();
$eventpart = array(); $eventpart = array();
foreach ( $eventbookingtype[ 'event' ][ 'eventparts' ] as $eventpart ) { foreach ( $eventbookingtype[ 'event' ][ 'eventparts' ] as $eventpart ) {
@ -608,6 +607,9 @@ function fulcrm_shoppingcart_buy_eventbookingtype_form( $form, &$form_state, $pe
} }
} }
$form[ 'eventslots' ][ '#title' ] = 'Itinerary';
$form[ 'eventslots' ][ '#type' ] = 'fieldset';
$form[ 'actions' ] = array( '#type' => 'actions' ); $form[ 'actions' ] = array( '#type' => 'actions' );
$form[ 'actions' ][ 'submit' ] = array( '#type' => 'submit', $form[ 'actions' ][ 'submit' ] = array( '#type' => 'submit',
'#value' => t('Add to Cart'), '#value' => t('Add to Cart'),

Loading…
Cancel
Save