Update card.php
This commit is contained in:
parent
a83c067081
commit
1368236d29
@ -2664,6 +2664,16 @@ else
|
||||
{
|
||||
print '<div class="inline-block divButAction"><a class="butAction" href="'.$_SERVER["PHP_SELF"].'?socid='.$object->id.'&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)
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user