diff --git a/htdocs/asset/class/asset.class.php b/htdocs/asset/class/asset.class.php
index 3c29fe6e7ce..945d893dab7 100644
--- a/htdocs/asset/class/asset.class.php
+++ b/htdocs/asset/class/asset.class.php
@@ -331,7 +331,7 @@ class Asset extends CommonObject
$label .= '
';
$label .= ''.$langs->trans('Ref').': '.$this->ref;
- $url = dol_buildpath('/assets/card.php', 1).'?id='.$this->id;
+ $url = dol_buildpath('/asset/card.php', 1).'?id='.$this->id;
if ($option != 'nolink')
{
diff --git a/htdocs/asset/list.php b/htdocs/asset/list.php
index 0f6624f1254..549e2fc0d25 100644
--- a/htdocs/asset/list.php
+++ b/htdocs/asset/list.php
@@ -271,7 +271,7 @@ if ($num == 1 && !empty($conf->global->MAIN_SEARCH_DIRECT_OPEN_IF_ONLY_ONE) && $
{
$obj = $db->fetch_object($resql);
$id = $obj->rowid;
- header("Location: ".DOL_URL_ROOT.'/assets/card.php?id='.$id);
+ header("Location: ".DOL_URL_ROOT.'/asset/card.php?id='.$id);
exit;
}
diff --git a/htdocs/asset/type.php b/htdocs/asset/type.php
index a2c6bab3f90..eebc85fc099 100644
--- a/htdocs/asset/type.php
+++ b/htdocs/asset/type.php
@@ -77,6 +77,7 @@ if (GETPOST('button_removefilter_x', 'alpha') || GETPOST('button_removefilter_x'
// Initialize technical object to manage hooks of page. Note that conf->hooks_modules contains array of hook context
$hookmanager->initHooks(array('assettypecard', 'globalcard'));
+$permissiontoadd = $user->rights->asset->setup_advance;
/*
* Actions
@@ -211,14 +212,6 @@ if (!$rowid && $action != 'create' && $action != 'edit')
$param = '';
- $newcardbutton = '';
- if ($user->rights->asset->configurer)
- {
- $newcardbutton = ''.$langs->trans('NewAssetType').'';
- $newcardbutton .= '';
- $newcardbutton .= '';
- }
-
print '