From e2e2e69379143ca7d8b1e9dd2ae1feb965304b75 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sun, 19 Dec 2021 03:54:04 +0100 Subject: [PATCH] Fix bad link --- htdocs/comm/action/card.php | 2 +- htdocs/product/inventory/card.php | 3 ++- htdocs/user/class/user.class.php | 1 + 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/htdocs/comm/action/card.php b/htdocs/comm/action/card.php index 0faba1ddc26..b5197c30361 100644 --- a/htdocs/comm/action/card.php +++ b/htdocs/comm/action/card.php @@ -1262,7 +1262,7 @@ if ($action == 'create') { if ($user->hasRight($origin, 'read')) { $hasPermissionOnLinkedObject = 1; } - //var_dump('origin='.$origin.' originid='.$originid.' $hasPermissionOnLinkedObject='.$hasPermissionOnLinkedObject); + //var_dump('origin='.$origin.' originid='.$originid.' hasPermissionOnLinkedObject='.$hasPermissionOnLinkedObject); if (! in_array($origin, array('societe', 'project', 'task', 'user'))) { // We do not use link for object that already contains a hard coded field to make links with agenda events diff --git a/htdocs/product/inventory/card.php b/htdocs/product/inventory/card.php index 49ce49958d5..23473545b11 100644 --- a/htdocs/product/inventory/card.php +++ b/htdocs/product/inventory/card.php @@ -464,7 +464,8 @@ if ($object->id > 0 && (empty($action) || ($action != 'edit' && $action != 'crea $MAXEVENT = 10; - $morehtmlcenter = dolGetButtonTitle($langs->trans('SeeAll'), '', 'fa fa-list-alt imgforviewmode', DOL_URL_ROOT.'/product/inventory/inventory_info.php?id='.$object->id); + //$morehtmlcenter = dolGetButtonTitle($langs->trans('SeeAll'), '', 'fa fa-list-alt imgforviewmode', DOL_URL_ROOT.'/product/inventory/inventory_info.php?id='.$object->id); + $morehtmlcenter = ''; // List of actions on element include_once DOL_DOCUMENT_ROOT.'/core/class/html.formactions.class.php'; diff --git a/htdocs/user/class/user.class.php b/htdocs/user/class/user.class.php index d5fc9c8ece2..7a56804aa71 100644 --- a/htdocs/user/class/user.class.php +++ b/htdocs/user/class/user.class.php @@ -687,6 +687,7 @@ class User extends CommonObject 'shipping' => 'expedition', 'task' => 'task@projet', 'fichinter' => 'ficheinter', + 'inventory' => 'stock', 'invoice' => 'facture', 'invoice_supplier' => 'fournisseur', 'knowledgerecord' => 'knowledgerecord@knowledgemanagement',