diff --git a/htdocs/categories/fiche.php b/htdocs/categories/fiche.php index 32139328d9c..8aa2bb8df0c 100644 --- a/htdocs/categories/fiche.php +++ b/htdocs/categories/fiche.php @@ -42,7 +42,7 @@ $type = GETPOST('type','alpha'); $urlfrom = GETPOST('urlfrom','alpha'); $socid=GETPOST('socid','int'); -$nom=GETPOST('nom'); +$label=GETPOST('label'); $description=GETPOST('description'); $visible=GETPOST('visible'); $parent=GETPOST('parent'); @@ -107,7 +107,7 @@ if ($action == 'add' && $user->rights->categorie->creer) $object = new Categorie($db); - $object->label = $nom; + $object->label = $label; $object->description = $description; $object->socid = ($socid ? $socid : 'null'); $object->visible = $visible; @@ -191,6 +191,8 @@ if ($user->rights->categorie->creer) */ if ($action == 'create' || $_POST["addcat"] == 'addcat') { + dol_set_focus('#label'); + print '