Fix: Missing some tabs
This commit is contained in:
parent
ff7852d23c
commit
ee28d58f85
@ -114,6 +114,7 @@ function societe_prepare_head($object)
|
||||
$head[$h][2] = 'notify';
|
||||
$h++;
|
||||
}
|
||||
|
||||
// Log
|
||||
if ($user->societe_id == 0)
|
||||
{
|
||||
|
||||
@ -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')
|
||||
{
|
||||
|
||||
@ -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"];
|
||||
|
||||
Loading…
Reference in New Issue
Block a user