forked from Wavyzz/dolibarr
Fix duplicate tab "contact" on thirdparty
This commit is contained in:
@@ -6940,6 +6940,7 @@ function complete_head_from_modules($conf,$langs,$object,&$head,&$h,$type,$mode=
|
||||
foreach($head as $key => $val)
|
||||
{
|
||||
$condition = (! empty($values[3]) ? verifCond($values[3]) : 1);
|
||||
//var_dump($key.' - '.$tabname.' - '.$head[$key][2].' - '.$condition);
|
||||
if ($head[$key][2]==$tabname && $condition)
|
||||
{
|
||||
unset($head[$key]);
|
||||
|
||||
Reference in New Issue
Block a user