Skip to content

Commit

Permalink
Fix: restore broken feature
Browse files Browse the repository at this point in the history
  • Loading branch information
hregis committed Jan 10, 2018
1 parent bd1acca commit 4cc0e88
Showing 1 changed file with 20 additions and 5 deletions.
25 changes: 20 additions & 5 deletions htdocs/societe/card.php
Expand Up @@ -2477,11 +2477,11 @@
print $formfile->showdocuments('company', $object->id, $filedir, $urlsource, $genallowed, $delallowed, $object->modelpdf, 0, 0, 0, 28, 0, 'entity='.$object->entity, 0, '', $object->default_lang);
}

// Subsidiaries list
if (empty($conf->global->SOCIETE_DISABLE_SUBSIDIARIES))
{
$result=show_subsidiaries($conf,$langs,$db,$object);
}
// Subsidiaries list
if (empty($conf->global->SOCIETE_DISABLE_SUBSIDIARIES))
{
$result=show_subsidiaries($conf,$langs,$db,$object);
}

print '</div><div class="fichehalfright"><div class="ficheaddleft">';

Expand All @@ -2497,6 +2497,21 @@
$somethingshown = $formactions->showactions($object, '', $socid, 1, '', $MAXEVENT, '', $morehtmlright); // Show all action for thirdparty

print '</div></div></div>';

if (! empty($conf->global->MAIN_DISABLE_CONTACTS_TAB))
{
// Contacts list
if (empty($conf->global->SOCIETE_DISABLE_CONTACTS))
{
$result=show_contacts($conf,$langs,$db,$object,$_SERVER["PHP_SELF"].'?socid='.$object->id);
}

// Addresses list
if (! empty($conf->global->SOCIETE_ADDRESSES_MANAGEMENT))
{
$result=show_addresses($conf,$langs,$db,$object,$_SERVER["PHP_SELF"].'?socid='.$object->id);
}
}
}

// Presend form
Expand Down

0 comments on commit 4cc0e88

Please sign in to comment.