From 362c9fd0b1272a3a9d59fadd6ffb4a91098f8180 Mon Sep 17 00:00:00 2001 From: ptibogxiv Date: Fri, 14 Sep 2018 15:38:38 +0200 Subject: [PATCH] FIX link in connect mode --- htdocs/societe/paymentmodes.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/htdocs/societe/paymentmodes.php b/htdocs/societe/paymentmodes.php index d855e89f712..604012a24c3 100644 --- a/htdocs/societe/paymentmodes.php +++ b/htdocs/societe/paymentmodes.php @@ -764,10 +764,11 @@ if ($socid && $action != 'edit' && $action != 'create' && $action != 'editcard' print $form->editfieldval("StripeCustomerId", 'key_account', $stripecu, $object, $permissiontowrite, 'string', '', null, null, '', 2, '', 'socid'); if ($stripecu && $action != 'editkey_account') { - $url='https://dashboard.stripe.com/test/customers/'.$stripecu; + if (! empty($conf->stripe->enabled) && !empty($stripeacc)) $connect=$stripeacc.'/'; + $url='https://dashboard.stripe.com/'.$connect.'test/customers/'.$stripecu; if ($servicestatus) { - $url='https://dashboard.stripe.com/customers/'.$stripecu; + $url='https://dashboard.stripe.com/'.$connect.'customers/'.$stripecu; } print ' '.img_picto($langs->trans('ShowInStripe'), 'object_globe').''; }