Merge remote-tracking branch 'origin/3.9' into 4.0
This commit is contained in:
commit
9bd937a3bc
@ -79,7 +79,9 @@ function societe_prepare_head(Societe $object)
|
|||||||
if (! empty($conf->global->MAIN_SUPPORT_SHARED_CONTACT_BETWEEN_THIRDPARTIES))
|
if (! empty($conf->global->MAIN_SUPPORT_SHARED_CONTACT_BETWEEN_THIRDPARTIES))
|
||||||
{
|
{
|
||||||
$head[$h][0] = DOL_URL_ROOT.'/societe/societecontact.php?socid='.$object->id;
|
$head[$h][0] = DOL_URL_ROOT.'/societe/societecontact.php?socid='.$object->id;
|
||||||
|
$nbContact = count($object->liste_contact(-1,'internal')) + count($object->liste_contact(-1,'external'));
|
||||||
$head[$h][1] = $langs->trans("ContactsAddresses");
|
$head[$h][1] = $langs->trans("ContactsAddresses");
|
||||||
|
if ($nbContact > 0) $head[$h][1].= ' <span class="badge">'.$nbContact.'</span>';
|
||||||
$head[$h][2] = 'contact';
|
$head[$h][2] = 'contact';
|
||||||
$h++;
|
$h++;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -5257,7 +5257,7 @@ function complete_head_from_modules($conf,$langs,$object,&$head,&$h,$type,$mode=
|
|||||||
if (preg_match('/SUBSTITUTION_([^_]+)/i',$values[2],$reg))
|
if (preg_match('/SUBSTITUTION_([^_]+)/i',$values[2],$reg))
|
||||||
{
|
{
|
||||||
$substitutionarray=array();
|
$substitutionarray=array();
|
||||||
complete_substitutions_array($substitutionarray,$langs,$object);
|
complete_substitutions_array($substitutionarray,$langs,$object,array('needforkey'=>$values[2]));
|
||||||
$label=make_substitutions($reg[1], $substitutionarray);
|
$label=make_substitutions($reg[1], $substitutionarray);
|
||||||
}
|
}
|
||||||
else $label=$langs->trans($values[2]);
|
else $label=$langs->trans($values[2]);
|
||||||
@ -5277,7 +5277,7 @@ function complete_head_from_modules($conf,$langs,$object,&$head,&$h,$type,$mode=
|
|||||||
if (preg_match('/SUBSTITUTION_([^_]+)/i',$values[2],$reg))
|
if (preg_match('/SUBSTITUTION_([^_]+)/i',$values[2],$reg))
|
||||||
{
|
{
|
||||||
$substitutionarray=array();
|
$substitutionarray=array();
|
||||||
complete_substitutions_array($substitutionarray,$langs,$object);
|
complete_substitutions_array($substitutionarray,$langs,$object,array('needforkey'=>$values[2]));
|
||||||
$label=make_substitutions($reg[1], $substitutionarray);
|
$label=make_substitutions($reg[1], $substitutionarray);
|
||||||
}
|
}
|
||||||
else $label=$langs->trans($values[2]);
|
else $label=$langs->trans($values[2]);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user