Trad: Traduction suppression categorie
This commit is contained in:
parent
7a1b1f30ac
commit
580b8b0353
@ -63,11 +63,15 @@ if ($_POST["action"] == 'add' && $user->rights->categorie->creer)
|
|||||||
if($_POST['catMere'] != "-1")
|
if($_POST['catMere'] != "-1")
|
||||||
$categorie->id_mere = $_POST['catMere'];
|
$categorie->id_mere = $_POST['catMere'];
|
||||||
|
|
||||||
|
if (! $categorie->label)
|
||||||
if (!$categorie->label || !$categorie->description)
|
|
||||||
{
|
{
|
||||||
|
$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';
|
$_GET["action"] = 'create';
|
||||||
$categorie->error = $langs->trans("ErrForgotField");
|
|
||||||
}
|
}
|
||||||
if ($categorie->error =="")
|
if ($categorie->error =="")
|
||||||
{
|
{
|
||||||
|
|||||||
@ -46,3 +46,5 @@ ContentsVisibleByAll=The contents will be visible by all
|
|||||||
ContentsVisibleByAllShort=Contents visible by all
|
ContentsVisibleByAllShort=Contents visible by all
|
||||||
ContentsNotVisibleByAllShort=Contents not visible by all
|
ContentsNotVisibleByAllShort=Contents not visible by all
|
||||||
CategoriesTree=Categories tree
|
CategoriesTree=Categories tree
|
||||||
|
DeleteCategory=Delete category
|
||||||
|
ConfirmDeleteCategory=Are you sure you want to delete this category ?
|
||||||
@ -46,3 +46,5 @@ ContentsVisibleByAll=Le contenu sera visible par tous
|
|||||||
ContentsVisibleByAllShort=Contenu visible par tous
|
ContentsVisibleByAllShort=Contenu visible par tous
|
||||||
ContentsNotVisibleByAllShort=Contenu non visible par tous
|
ContentsNotVisibleByAllShort=Contenu non visible par tous
|
||||||
CategoriesTree=Arbre des catégories
|
CategoriesTree=Arbre des catégories
|
||||||
|
DeleteCategory=Supprimer categorie
|
||||||
|
ConfirmDeleteCategory=Etes vous sur de vouloir supprimer cette catégorie ?
|
||||||
Loading…
Reference in New Issue
Block a user