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);
|
dol_print_error($db, $object->error, $object->errors);
|
||||||
} elseif (count($cats) < 1) {
|
} elseif (count($cats) < 1) {
|
||||||
print '<tr class="oddeven">';
|
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>';
|
print '</tr>';
|
||||||
} else {
|
} else {
|
||||||
$categstatic = new Categorie($db);
|
$categstatic = new Categorie($db);
|
||||||
@ -461,7 +461,7 @@ if ($cats < 0) {
|
|||||||
|
|
||||||
print '<tr class="nobordernopadding">';
|
print '<tr class="nobordernopadding">';
|
||||||
print '<td>'.img_picto_common('', 'treemenu/branchbottom.gif').'</td>';
|
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 '<td> </td>';
|
||||||
print '</tr>';
|
print '</tr>';
|
||||||
|
|
||||||
@ -1145,7 +1145,7 @@ if ($type == Categorie::TYPE_USER) {
|
|||||||
|
|
||||||
// List of warehouses
|
// List of warehouses
|
||||||
if ($type == Categorie::TYPE_WAREHOUSE) {
|
if ($type == Categorie::TYPE_WAREHOUSE) {
|
||||||
if ($user->hasRight("warehouse", "read")) {
|
if ($user->hasRight("stock", "read")) {
|
||||||
$permission = $user->rights->stock->creer;
|
$permission = $user->rights->stock->creer;
|
||||||
|
|
||||||
require_once DOL_DOCUMENT_ROOT.'/product/stock/class/entrepot.class.php';
|
require_once DOL_DOCUMENT_ROOT.'/product/stock/class/entrepot.class.php';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user