|
|
|
@ -127,12 +127,11 @@ function fulcrm_webhook_createupdate_entity( $data ) {
|
|
|
|
|
$function( $return );
|
|
|
|
|
|
|
|
|
|
if ( array_key_exists( 'entity', $return ) ) {
|
|
|
|
|
fulcrm_webhook_set_entity_mapping( $fulcrm_type = $fulcrm_type,
|
|
|
|
|
$fulcrm_pk = $fulcrm_pk,
|
|
|
|
|
$entity_type = $return[ 'entity_type' ],
|
|
|
|
|
fulcrm_webhook_set_entity_mapping( $entity_type = $return[ 'entity_type' ],
|
|
|
|
|
$bundle = array_key_exists( 'bundle', $return ) ? $return[ 'bundle' ] : $return[ 'entity_type' ],
|
|
|
|
|
$entity_id = $return[ 'entity_id' ]
|
|
|
|
|
);
|
|
|
|
|
$entity_id = $return[ 'entity_id' ],
|
|
|
|
|
$fulcrm_type = $fulcrm_type,
|
|
|
|
|
$fulcrm_pk = $fulcrm_pk );
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|