Merge pull request #15368 from cfoellmann/fix-new-contact-button
fix new company in contacts template file
This commit is contained in:
commit
b91123a84c
@ -145,7 +145,7 @@ if ($permission)
|
|||||||
$newcardbutton = '';
|
$newcardbutton = '';
|
||||||
if (!empty($object->socid) && $object->socid > 1 && $user->rights->societe->creer)
|
if (!empty($object->socid) && $object->socid > 1 && $user->rights->societe->creer)
|
||||||
{
|
{
|
||||||
$newcardbutton .= '<a href="'.DOL_URL_ROOT.'/contact/card.php?socid='.$object->socid.'&action=create&backtopage='.urlencode($_SERVER["PHP_SELF"].'?id='.$object->id).'" title="'.$langs->trans('NewContact').'"><span class="fa fa-plus-circle valignmiddle paddingleft"></span></a>';
|
$newcardbutton .= '<a href="'.DOL_URL_ROOT.'/contact/card.php?socid='.$selectedCompany.'&action=create&backtopage='.urlencode($_SERVER["PHP_SELF"].'?id='.$object->id).'" title="'.$langs->trans('NewContact').'"><span class="fa fa-plus-circle valignmiddle paddingleft"></span></a>';
|
||||||
}
|
}
|
||||||
print $newcardbutton;
|
print $newcardbutton;
|
||||||
?>
|
?>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user