Merge pull request #9513 from ptibogxiv/patch-62

FIX link in connect mode
This commit is contained in:
Laurent Destailleur 2018-09-15 17:28:35 +02:00 committed by GitHub
commit e9159dda02
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 ' <a href="'.$url.'" target="_stripe">'.img_picto($langs->trans('ShowInStripe'), 'object_globe').'</a>';
}