From 20f7263587fe0935d78634b6e7bbec15cb050a38 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Tue, 27 Dec 2022 01:45:00 +0100 Subject: [PATCH] Debug v17 --- htdocs/categories/viewcat.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/htdocs/categories/viewcat.php b/htdocs/categories/viewcat.php index 194229725c3..329c9473cc7 100644 --- a/htdocs/categories/viewcat.php +++ b/htdocs/categories/viewcat.php @@ -374,7 +374,7 @@ if ($cats < 0) { dol_print_error($db, $object->error, $object->errors); } elseif (count($cats) < 1) { print ''; - print ''.$langs->trans("NoSubCat").''; + print ''.$langs->trans("NoSubCat").''; print ''; } else { $categstatic = new Categorie($db); @@ -461,7 +461,7 @@ if ($cats < 0) { print ''; print ''.img_picto_common('', 'treemenu/branchbottom.gif').''; - print ''.$langs->trans("NoCategoryYet").''; + print ''.$langs->trans("NoCategoryYet").''; print ' '; print ''; @@ -1145,7 +1145,7 @@ if ($type == Categorie::TYPE_USER) { // List of warehouses if ($type == Categorie::TYPE_WAREHOUSE) { - if ($user->hasRight("warehouse", "read")) { + if ($user->hasRight("stock", "read")) { $permission = $user->rights->stock->creer; require_once DOL_DOCUMENT_ROOT.'/product/stock/class/entrepot.class.php';