diff --git a/htdocs/categories/fiche.php b/htdocs/categories/fiche.php index ce1da9d46b5..db7aab29de4 100644 --- a/htdocs/categories/fiche.php +++ b/htdocs/categories/fiche.php @@ -63,11 +63,15 @@ if ($_POST["action"] == 'add' && $user->rights->categorie->creer) if($_POST['catMere'] != "-1") $categorie->id_mere = $_POST['catMere']; - - if (!$categorie->label || !$categorie->description) + if (! $categorie->label) { + $categorie->error = $langs->trans("ErrorFieldRequired",$langs->transnoentities("Ref")); + $_GET["action"] = 'create'; + } + if (! $categorie->description) + { + $categorie->error = $langs->trans("ErrorFieldRequired",$langs->transnoentities("Description")); $_GET["action"] = 'create'; - $categorie->error = $langs->trans("ErrForgotField"); } if ($categorie->error =="") { diff --git a/htdocs/langs/en_US/categories.lang b/htdocs/langs/en_US/categories.lang index e14d36710a7..f2c0c79bcc2 100644 --- a/htdocs/langs/en_US/categories.lang +++ b/htdocs/langs/en_US/categories.lang @@ -45,4 +45,6 @@ ReturnInProduct=Back to product/service card ContentsVisibleByAll=The contents will be visible by all ContentsVisibleByAllShort=Contents visible by all ContentsNotVisibleByAllShort=Contents not visible by all -CategoriesTree=Categories tree \ No newline at end of file +CategoriesTree=Categories tree +DeleteCategory=Delete category +ConfirmDeleteCategory=Are you sure you want to delete this category ? \ No newline at end of file diff --git a/htdocs/langs/fr_FR/categories.lang b/htdocs/langs/fr_FR/categories.lang index 00cd06da197..524f73d7613 100644 --- a/htdocs/langs/fr_FR/categories.lang +++ b/htdocs/langs/fr_FR/categories.lang @@ -45,4 +45,6 @@ ReturnInProduct=Retour sur la fiche produit/service ContentsVisibleByAll=Le contenu sera visible par tous ContentsVisibleByAllShort=Contenu visible par tous ContentsNotVisibleByAllShort=Contenu non visible par tous -CategoriesTree=Arbre des catégories \ No newline at end of file +CategoriesTree=Arbre des catégories +DeleteCategory=Supprimer categorie +ConfirmDeleteCategory=Etes vous sur de vouloir supprimer cette catégorie ? \ No newline at end of file