From bcefd7006b1654c2c3dbf5a621023c2a2fd77a2a Mon Sep 17 00:00:00 2001 From: Regis Houssin <regis@dolibarr.fr> Date: Sat, 19 Mar 2011 12:55:01 +0000 Subject: [PATCH] Fix: why no link ? --- htdocs/categories/index.php | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/htdocs/categories/index.php b/htdocs/categories/index.php index 529518183d9..60c6cc4be65 100644 --- a/htdocs/categories/index.php +++ b/htdocs/categories/index.php @@ -31,7 +31,7 @@ require("../main.inc.php"); require_once(DOL_DOCUMENT_ROOT."/categories/class/categorie.class.php"); require_once(DOL_DOCUMENT_ROOT."/lib/treeview.lib.php"); -$type=isset($_GET['type'])?$_GET['type']:(isset($_POST['type'])?$_POST['type']:0); +$type=(GETPOST('type') ? GETPOST('type') : 0); if (!$user->rights->categorie->lire) accessforbidden(); @@ -259,13 +259,13 @@ foreach($fulltree as $key => $val) // Show link print '<td valign="middle">'; //if ($section == $val['id']) print ' <u>'; - /* We don't want a link + // We don't want a link ... why ? $categstatic->id=$val['id']; $categstatic->ref=$val['label']; $categstatic->type=$type; print $categstatic->getNomUrl(0,'',28); - */ - print ' '.dol_trunc($val['label'],28); + + //print ' '.dol_trunc($val['label'],28); //if ($section == $val['id']) print '</u>'; print '</td>'; print '</tr></table>'; @@ -306,15 +306,11 @@ if ($nbofentries == 0) print '</tr>'; } - // ----- End of section ----- // -------------------------- - - print "</table>"; - $db->close(); llxFooter('$Date$ - $Revision$'); -- GitLab