Update card.php

This commit is contained in:
ptibogxiv 2019-09-08 20:15:05 +02:00 committed by GitHub
parent a83c067081
commit 1368236d29
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2664,6 +2664,16 @@ else
{
print '<div class="inline-block divButAction"><a class="butAction" href="'.$_SERVER["PHP_SELF"].'?socid='.$object->id.'&amp;action=edit">'.$langs->trans("Modify").'</a></div>'."\n";
}
if (! empty($conf->adherent->enabled))
{
$adh = new Adherent($db);
$result=$adh->fetch('','',$object->id);
if (!$result && $object->client == 1)
{
print '<a class="butAction" href="'.DOL_URL_ROOT.'/adherents/card.php?&action=create&socid='.$object->id.'" title="'.dol_escape_htmltag($langs->trans("NewMember")).'">'.$langs->trans("NewMember").'</a>';
}
}
if ($user->rights->societe->supprimer)
{