From 61bb79f8ce018c85cb3b7cb72ebceaa2b969ab1c Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Fri, 22 May 2009 15:00:40 +0000 Subject: [PATCH] Fix: Try to fix expand pb --- htdocs/categories/index.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/htdocs/categories/index.php b/htdocs/categories/index.php index 2671c53c10e..cda4ab47cfb 100644 --- a/htdocs/categories/index.php +++ b/htdocs/categories/index.php @@ -1,6 +1,6 @@ - * Copyright (C) 2005 Éric Seigne + * Copyright (C) 2005 �ric Seigne * Copyright (C) 2006-2009 Laurent Destailleur * Copyright (C) 2007 Patrick Raguin * Copyright (C) 2005-2009 Regis Houssin @@ -71,7 +71,7 @@ print ''; print ''; print $langs->trans("Name").':'; /* -// faire une rech dans une sous catégorie uniquement +// faire une rech dans une sous cat�gorie uniquement print ''; print $langs->trans("SubCatOf").':'; @@ -86,7 +86,7 @@ print ''; /* - * Catégories trouvées + * Categories found */ if($_POST['catname'] || $_REQUEST['id']) { @@ -164,7 +164,7 @@ foreach($fulltree as $key => $val) // Update expandedsectionarray in session $expandedsectionarray=array(); -if (isset($_SESSION['expandedsectionarray'])) $expandedsectionarray=split(',',$_SESSION['expandedsectionarray']); +if (isset($_SESSION['dol_expandedsectionarray'])) $expandedsectionarray=split(',',$_SESSION['dol_expandedsectionarray']); if ($section && $_GET['sectionexpand'] == 'true') { @@ -177,7 +177,7 @@ if ($section && $_GET['sectionexpand'] == 'true') $expandedsectionarray[]=$idcursor; } } - $_SESSION['expandedsectionarray']=join(',',$expandedsectionarray); + $_SESSION['dol_expandedsectionarray']=join(',',$expandedsectionarray); } if ($section && $_GET['sectionexpand'] == 'false') { @@ -189,9 +189,9 @@ if ($section && $_GET['sectionexpand'] == 'false') // is_in_subtree(fulltree,sectionparent,sectionchild) if ($sectioncursor && ! is_in_subtree($fulltree,$section,$sectioncursor)) $expandedsectionarray[]=$sectioncursor; } - $_SESSION['expandedsectionarray']=join(',',$expandedsectionarray); + $_SESSION['dol_expandedsectionarray']=join(',',$expandedsectionarray); } -//print $_SESSION['expandedsectionarray'].'
'; +//print $_SESSION['dol_expandedsectionarray'].'
'; $nbofentries=0; $oldvallevel=0;