diff --git a/htdocs/categories/fiche.php b/htdocs/categories/fiche.php index c5f424d54dc..af1f76cd8b7 100644 --- a/htdocs/categories/fiche.php +++ b/htdocs/categories/fiche.php @@ -68,11 +68,12 @@ if ($_POST["action"] == 'add' && $user->rights->categorie->creer) $categorie->error = $langs->trans("ErrorFieldRequired",$langs->transnoentities("Ref")); $_GET["action"] = 'create'; } - if (! $categorie->description) + else if (! $categorie->description) { $categorie->error = $langs->trans("ErrorFieldRequired",$langs->transnoentities("Description")); $_GET["action"] = 'create'; } + if ($categorie->error =="") { if ($categorie->create() > 0) @@ -127,8 +128,7 @@ if ($user->rights->categorie->creer) { print ''; } - print ''; - print ''; + print_fiche_titre($langs->trans("CreateCat")); print '