Correction du problème : dans "configuration autre" quand je mets à jour une info, elle n'apparait plus dans la liste.

Il s'agissait d'une régression suit a la simplification du code par l'utilisation de la fonction dolibarr_set_const, le paramètre passé pour visible était 0 au lieu de 1.
This commit is contained in:
Laurent Destailleur 2004-02-22 19:55:53 +00:00
parent 69d5aac34e
commit 1789d6f8b0

View File

@ -47,7 +47,7 @@ $typeconst=array('yesno','texte','chaine');
if ($HTTP_POST_VARS["action"] == 'update' || $HTTP_POST_VARS["action"] == 'add') if ($HTTP_POST_VARS["action"] == 'update' || $HTTP_POST_VARS["action"] == 'add')
{ {
if (! dolibarr_set_const($db, $HTTP_POST_VARS["constname"],$HTTP_POST_VARS["constvalue"],$typeconst[$HTTP_POST_VARS["consttype"]],0,isset($HTTP_POST_VARS["constnote"])?$HTTP_POST_VARS["constnote"]:'')); if (! dolibarr_set_const($db, $HTTP_POST_VARS["constname"],$HTTP_POST_VARS["constvalue"],$typeconst[$HTTP_POST_VARS["consttype"]],1,isset($HTTP_POST_VARS["constnote"])?$HTTP_POST_VARS["constnote"]:''));
{ {
print $db->error(); print $db->error();
} }