fixup runtimes with eventbookingtypeslots
This commit is contained in:
		@ -167,14 +167,18 @@ function fulcrm_shoppingcart_buy_eventbookingtype_form_submit( $form, &$form_sta
 | 
				
			|||||||
                                   $form_state[ 'fulcrm_shoppingcart' ][ 'eventbookingtype' ][ 'event' ][ 'name' ] );
 | 
					                                   $form_state[ 'fulcrm_shoppingcart' ][ 'eventbookingtype' ][ 'event' ][ 'name' ] );
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            $eventslotbookings = array();
 | 
					            $eventslotbookings = array();
 | 
				
			||||||
            foreach ( $form_state[ 'fulcrm_shoppingcart' ][ 'eventbookingtype' ][ 'eventslotbookings' ] as $eventslotbooking ) {
 | 
					            if ( array_key_exists( 'eventbookingtypeslots', $form_state[ 'fulcrm_shoppingcart' ][ 'eventbookingtype' ] ) ) {
 | 
				
			||||||
                $eventpart_id = fulcrm_apiv2_url_to_pk( $eventslotbooking[ 'eventslot' ][ 'eventpart' ] );
 | 
					                foreach ( $form_state[ 'fulcrm_shoppingcart' ][ 'eventbookingtype' ][ 'eventbookingtypeslots' ] as $eventbookingtypeslots ) {
 | 
				
			||||||
                $eventslot_id = fulcrm_apiv2_url_to_pk( $eventslotbooking[ 'eventslot' ][ 'url' ] );
 | 
					                    $eventpart_id = fulcrm_apiv2_url_to_pk( $eventbookingtypeslots[ 'eventslot' ][ 'eventpart' ] );
 | 
				
			||||||
 | 
					                    $eventslot_id = fulcrm_apiv2_url_to_pk( $eventbookingtypeslots[ 'eventslot' ][ 'url' ] );
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                if ( array_key_exists( $eventpart_id, $eventslotbookings ) )
 | 
					                    if ( array_key_exists( $eventpart_id, $eventslotbookings ) )
 | 
				
			||||||
                    drupal_set_message( 'XXX cannot yet cope with multiple choice event slot bookings; defaulting to first.', 'warning' );
 | 
					                        drupal_set_message( 'XXX cannot yet cope with multiple choice event slot bookings; defaulting to first.', 'warning' );
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                $eventslotbookings[ $eventpart_id ] = $eventslot_id;
 | 
					                    $eventslotbookings[ $eventpart_id ] = $eventslot_id;
 | 
				
			||||||
 | 
					                }
 | 
				
			||||||
 | 
					            } else {
 | 
				
			||||||
 | 
					                drupal_set_message( 'XXX no eventbookingtypeslots to choose from?', 'warning' );
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            if ( $person_uuid ) {
 | 
					            if ( $person_uuid ) {
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user