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';
|
$head[$h][2] = 'notify';
|
||||||
$h++;
|
$h++;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Log
|
// Log
|
||||||
if ($user->societe_id == 0)
|
if ($user->societe_id == 0)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -487,8 +487,12 @@ function dol_fiche_head($links=array(), $active='0', $title='', $notab=0, $picto
|
|||||||
print '</a>';
|
print '</a>';
|
||||||
}
|
}
|
||||||
|
|
||||||
// Affichage onglets
|
// Define max of key (max may be higher than sizeof becaus of hole due to module disabling some tabs).
|
||||||
for ($i = 0 ; $i < sizeof($links) ; $i++)
|
$keys=array_keys($links);
|
||||||
|
$maxkey=max($keys);
|
||||||
|
|
||||||
|
// Show tabs
|
||||||
|
for ($i = 0 ; $i <= $maxkey ; $i++)
|
||||||
{
|
{
|
||||||
if ($links[$i][2] == 'image')
|
if ($links[$i][2] == 'image')
|
||||||
{
|
{
|
||||||
|
|||||||
@ -183,6 +183,7 @@ else
|
|||||||
{
|
{
|
||||||
$soc->typent_id = $_POST["typent_id"];
|
$soc->typent_id = $_POST["typent_id"];
|
||||||
}
|
}
|
||||||
|
|
||||||
$soc->client = $_POST["client"];
|
$soc->client = $_POST["client"];
|
||||||
$soc->fournisseur = $_POST["fournisseur"];
|
$soc->fournisseur = $_POST["fournisseur"];
|
||||||
$soc->fournisseur_categorie = $_POST["fournisseur_categorie"];
|
$soc->fournisseur_categorie = $_POST["fournisseur_categorie"];
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user