Correction du problme : dans "configuration autre" quand je mets jour une info, elle n'apparait plus dans la liste.
Il s'agissait d'une rgression suit a la simplification du code par l'utilisation de la fonction dolibarr_set_const, le paramtre pass pour visible tait 0 au lieu de 1.
This commit is contained in:
parent
69d5aac34e
commit
1789d6f8b0
@ -47,7 +47,7 @@ $typeconst=array('yesno','texte','chaine');
|
||||
|
||||
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();
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user