From 13e7cefe39df599a771e8f2b764d9bfa55d36baf Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Fri, 8 Nov 2024 11:04:46 +0100 Subject: [PATCH] Debug v21 --- htdocs/categories/viewcat.php | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/htdocs/categories/viewcat.php b/htdocs/categories/viewcat.php index 4d5dc42f544..4d123967b14 100644 --- a/htdocs/categories/viewcat.php +++ b/htdocs/categories/viewcat.php @@ -575,7 +575,7 @@ if ($type == Categorie::TYPE_PRODUCT) { print ''; if ($permission) { print 'id.'">'; - print $langs->trans("DeleteFromCat"); + //print $langs->trans("DeleteFromCat"); print img_picto($langs->trans("DeleteFromCat"), 'unlink', '', 0, 0, 0, '', 'paddingleft'); print ""; } @@ -655,7 +655,7 @@ if ($type == Categorie::TYPE_CUSTOMER) { print ''; if ($permission) { print "id."'>"; - //print ''.$langs->trans("DeleteFromCat").''; + //print $langs->trans("DeleteFromCat"); print img_picto($langs->trans("DeleteFromCat"), 'unlink', '', 0, 0, 0, '', 'paddingleft'); print ""; } @@ -736,7 +736,7 @@ if ($type == Categorie::TYPE_SUPPLIER) { print ''; if ($permission) { print 'id.($limit ? '&limit='.$limit : '').'">'; - print $langs->trans("DeleteFromCat"); + //print $langs->trans("DeleteFromCat"); print img_picto($langs->trans("DeleteFromCat"), 'unlink', '', 0, 0, 0, '', 'paddingleft'); print ""; } @@ -821,7 +821,7 @@ if ($type == Categorie::TYPE_MEMBER) { print ''; if ($permission) { print "id."'>"; - print $langs->trans("DeleteFromCat"); + //print $langs->trans("DeleteFromCat"); print img_picto($langs->trans("DeleteFromCat"), 'unlink', '', 0, 0, 0, '', 'paddingleft'); print ""; } @@ -907,7 +907,7 @@ if ($type == Categorie::TYPE_CONTACT) { print ''; if ($permission) { print "id."'>"; - print $langs->trans("DeleteFromCat"); + //print $langs->trans("DeleteFromCat"); print img_picto($langs->trans("DeleteFromCat"), 'unlink', '', 0, 0, 0, '', 'paddingleft'); print ""; } @@ -990,7 +990,7 @@ if ($type == Categorie::TYPE_ACCOUNT) { print ''; if ($permission) { print "id."'>"; - print $langs->trans("DeleteFromCat"); + //print $langs->trans("DeleteFromCat"); print img_picto($langs->trans("DeleteFromCat"), 'unlink', '', 0, 0, 0, '', 'paddingleft'); print ""; } @@ -1067,13 +1067,12 @@ if ($type == Categorie::TYPE_PROJECT) { print ''; print $project->getNomUrl(1); print "\n"; - print ''.$project->ref."\n"; print ''.$project->title."\n"; // Link to delete from category print ''; if ($permission) { print "id."'>"; - print $langs->trans("DeleteFromCat"); + //print $langs->trans("DeleteFromCat"); print img_picto($langs->trans("DeleteFromCat"), 'unlink', '', 0, 0, 0, '', 'paddingleft'); print ""; } @@ -1151,7 +1150,7 @@ if ($type == Categorie::TYPE_USER) { print ''; if ($user->hasRight('user', 'user', 'creer')) { print "id."'>"; - print $langs->trans("DeleteFromCat"); + //print $langs->trans("DeleteFromCat"); print img_picto($langs->trans("DeleteFromCat"), 'unlink', '', 0, 0, 0, '', 'paddingleft'); print ""; } @@ -1223,7 +1222,7 @@ if ($type == Categorie::TYPE_WAREHOUSE) { print ''; if ($permission) { print "id."'>"; - print $langs->trans("DeleteFromCat"); + //print $langs->trans("DeleteFromCat"); print img_picto($langs->trans("DeleteFromCat"), 'unlink', '', 0, 0, 0, '', 'paddingleft'); print ""; } @@ -1303,7 +1302,7 @@ if ($type == Categorie::TYPE_TICKET) { print ''; if ($permission) { print "id."'>"; - print $langs->trans("DeleteFromCat"); + //print $langs->trans("DeleteFromCat"); print img_picto($langs->trans("DeleteFromCat"), 'unlink', '', 0, 0, 0, '', 'paddingleft'); print ""; }