Debug v17
This commit is contained in:
parent
3bc86c4841
commit
20f7263587
@ -374,7 +374,7 @@ if ($cats < 0) {
|
||||
dol_print_error($db, $object->error, $object->errors);
|
||||
} elseif (count($cats) < 1) {
|
||||
print '<tr class="oddeven">';
|
||||
print '<td colspan="3" class="opacitymedium">'.$langs->trans("NoSubCat").'</td>';
|
||||
print '<td colspan="3"><span class="opacitymedium">'.$langs->trans("NoSubCat").'</span></td>';
|
||||
print '</tr>';
|
||||
} else {
|
||||
$categstatic = new Categorie($db);
|
||||
@ -461,7 +461,7 @@ if ($cats < 0) {
|
||||
|
||||
print '<tr class="nobordernopadding">';
|
||||
print '<td>'.img_picto_common('', 'treemenu/branchbottom.gif').'</td>';
|
||||
print '<td valign="middle">'.$langs->trans("NoCategoryYet").'</td>';
|
||||
print '<td class="valignmiddle">'.$langs->trans("NoCategoryYet").'</td>';
|
||||
print '<td> </td>';
|
||||
print '</tr>';
|
||||
|
||||
@ -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';
|
||||
|
||||
Loading…
Reference in New Issue
Block a user