From 1778b88f3564137718916da038701cc8c2a2a2a9 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 14 Jan 2008 18:56:33 +0000 Subject: [PATCH] Fix: Le dico des types d'action visible uniquement si module agenda actif --- htdocs/admin/dict.php | 24 +++++++++++++++++------- 1 file changed, 17 insertions(+), 7 deletions(-) diff --git a/htdocs/admin/dict.php b/htdocs/admin/dict.php index e1c125e1609..61f17356f21 100644 --- a/htdocs/admin/dict.php +++ b/htdocs/admin/dict.php @@ -187,12 +187,12 @@ $tabrowid[14]= ""; $tabrowid[15]= ""; // Condition to show dictionnary in setup page -$tabcond[1] = $conf->societe->enabled; +$tabcond[1] = true; $tabcond[2] = true; $tabcond[3] = true; $tabcond[4] = true; $tabcond[5] = $conf->societe->enabled; -$tabcond[6] = true; +$tabcond[6] = $conf->agenda->enabled; $tabcond[7] = $conf->tax->enabled; $tabcond[8] = $conf->societe->enabled; $tabcond[9] = true; @@ -638,23 +638,33 @@ else */ $var=true; + $lastlineisempty=false; print ''; - print ''; + print ''; + //print ''; + print ''; + print ''; + print ''; foreach ($taborder as $i) { if ($tabname[$i] && ! $tabcond[$i]) continue; // If dictionnary and condition not true - $var=!$var; if ($i) { - $value=$tabname[$i]; + $var=!$var; + $value=$tabname[$i]; print ''; - + $lastlineisempty=false; } else { - print ''; + if (! $lastlineisempty) + { + $var=!$var; + print ''; + $lastlineisempty=true; + } } } print '
'.$langs->trans("Dictionnary").''.$langs->trans("Table").'
'.$langs->trans("Module").''.$langs->trans("Dictionnary").''.$langs->trans("Table").'
'.$tablib[$i].''.$tabname[$i].'
  
  
';