Fix stripe link

This commit is contained in:
Laurent Destailleur
2018-05-17 09:45:31 +02:00
parent 67ed1e0841
commit 200af6ea5c
2 changed files with 3 additions and 1 deletions

View File

@@ -710,7 +710,9 @@ else
print '<tr><td>';
print $langs->trans('CronLastResult')."</td><td>";
if ($object->lastresult) print '<span class="error">';
print $object->lastresult;
if ($object->lastresult) print '</span>';
print "</td></tr>";
print '<tr><td>';

View File

@@ -758,7 +758,7 @@ if ($socid && $action != 'edit' && $action != 'create' && $action != 'editcard'
print '</td><td>';
//print $stripecu;
print $form->editfieldval("StripeCustomerId", 'key_account', $stripecu, $object, $permissiontowrite, 'string', '', null, null, '', 2, '', 'socid');
if ($stripecu)
if ($stripecu && $action != 'editkey_account')
{
$url='https://dashboard.stripe.com/test/customers/'.$stripecu;
if ($servicestatus)