replace test code with vague idea of how it'll work
This commit is contained in:
parent
41984d4926
commit
11743d307b
@ -103,6 +103,8 @@ function fulcrm_shoppingcart_buy_url( $product_id ) {
|
||||
}
|
||||
|
||||
function fulcrm_shoppingcart_buy_eventbookingtype_form_submit( $form, &$form_state ) {
|
||||
// $person_d = fulcrm_collection_form_values_to_d( 'person', $form_state[ 'values' ] );
|
||||
|
||||
$product_id = fulcrm_crypto_get_object_id_form_value( 'product', $form_state[ 'values' ][ 'product_id_hmac' ] );
|
||||
$eventbookingtype_id = fulcrm_crypto_get_object_id_form_value( 'eventbookingtype', $form_state[ 'values' ][ 'eventbookingtype_id_hmac' ] );
|
||||
|
||||
@ -189,7 +191,7 @@ function fulcrm_shoppingcart_buy_eventbookingtype_form( $form, &$form_state, $pe
|
||||
'#value' => fulcrm_crypto_object_id_form_value( 'person.uuid', $person[ 'uuid' ] ) );
|
||||
}
|
||||
|
||||
$form[ 'test' ] = fulcrm_collection_to_form( $eventbookingtype[ 'person_ddatacollection' ] );
|
||||
// $form[ 'person' ] = fulcrm_collection_to_form( 'person', $eventbookingtype[ 'person_ddatacollection' ], $person[ 'd' ] );
|
||||
|
||||
if ( array_key_exists( 'id', $person ) )
|
||||
$persons = array( fulcrm_crypto_object_id_hmac( 'person', $person[ 'id' ] ) => 'myself' );
|
||||
|
Loading…
x
Reference in New Issue
Block a user