Fix: Missing some tabs

This commit is contained in:
Laurent Destailleur 2011-06-07 21:45:20 +00:00
parent ff7852d23c
commit ee28d58f85
3 changed files with 8 additions and 2 deletions

View File

@ -114,6 +114,7 @@ function societe_prepare_head($object)
$head[$h][2] = 'notify';
$h++;
}
// Log
if ($user->societe_id == 0)
{

View File

@ -487,8 +487,12 @@ function dol_fiche_head($links=array(), $active='0', $title='', $notab=0, $picto
print '</a>';
}
// Affichage onglets
for ($i = 0 ; $i < sizeof($links) ; $i++)
// Define max of key (max may be higher than sizeof becaus of hole due to module disabling some tabs).
$keys=array_keys($links);
$maxkey=max($keys);
// Show tabs
for ($i = 0 ; $i <= $maxkey ; $i++)
{
if ($links[$i][2] == 'image')
{

View File

@ -183,6 +183,7 @@ else
{
$soc->typent_id = $_POST["typent_id"];
}
$soc->client = $_POST["client"];
$soc->fournisseur = $_POST["fournisseur"];
$soc->fournisseur_categorie = $_POST["fournisseur_categorie"];