From a0ea39ecd1ee33645f2a5537f66b5b81653af714 Mon Sep 17 00:00:00 2001 From: Marek Isalski Date: Wed, 16 May 2018 18:09:42 +0100 Subject: [PATCH] show link to campaign --- fulcrm_campaign.admin.inc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/fulcrm_campaign.admin.inc b/fulcrm_campaign.admin.inc index 0afa7c7..b8028c0 100644 --- a/fulcrm_campaign.admin.inc +++ b/fulcrm_campaign.admin.inc @@ -630,21 +630,21 @@ function fulcrm_campaign_admin_campaign_sync_form_submit( $form, &$form_state ) if ( $api_data[ 'success' ] ) { $url = $api_data[ 'headers' ][ 'Location' ]; $fulcrm_type = fulcrm_apiv2_url_to_type( $url ); - $fulcrm_pk = fulcrm_apiv2_url_to_pk( $url ); + $campaign_id = fulcrm_apiv2_url_to_pk( $url ); fulcrm_webhook_set_entity_mapping( $entity_type = 'fulcrm_campaign', $bundle = 'fulcrm_campaign', $entity_id = $fcid, $fulcrm_type = $fulcrm_type, - $fulcrm_pk = $fulcrm_pk, + $fulcrm_pk = $campaign_id ); } } if ( $api_data[ 'success' ] ) { - drupal_set_message( 'Campaign ' . $fcid . ' synced to fulcrm.', 'status', FALSE ); + drupal_set_message( 'Campaign ' . $fcid . ' synced to fulcrm.', 'status', FALSE ); } else { - drupal_set_message( 'Campaign ' . $fcid . ' could not be synced to fulcrm.', 'error', FALSE ); + drupal_set_message( 'Campaign ' . $fcid . ' could not be synced to fulcrm.', 'error', FALSE ); } } }