diff --git a/htdocs/categories/index.php b/htdocs/categories/index.php
index cda4ab47cfb..737090dccff 100644
--- a/htdocs/categories/index.php
+++ b/htdocs/categories/index.php
@@ -164,7 +164,7 @@ foreach($fulltree as $key => $val)
// Update expandedsectionarray in session
$expandedsectionarray=array();
-if (isset($_SESSION['dol_expandedsectionarray'])) $expandedsectionarray=split(',',$_SESSION['dol_expandedsectionarray']);
+if (isset($_SESSION['dol_catexpandedsectionarray'.$type])) $expandedsectionarray=split(',',$_SESSION['dol_catexpandedsectionarray'.$type]);
if ($section && $_GET['sectionexpand'] == 'true')
{
@@ -177,7 +177,7 @@ if ($section && $_GET['sectionexpand'] == 'true')
$expandedsectionarray[]=$idcursor;
}
}
- $_SESSION['dol_expandedsectionarray']=join(',',$expandedsectionarray);
+ $_SESSION['dol_catexpandedsectionarray'.$type]=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['dol_expandedsectionarray']=join(',',$expandedsectionarray);
+ $_SESSION['dol_catexpandedsectionarray'.$type]=join(',',$expandedsectionarray);
}
-//print $_SESSION['dol_expandedsectionarray'].'
';
+//print $_SESSION['dol_catexpandedsectionarray'.$type].'
';
$nbofentries=0;
$oldvallevel=0;
diff --git a/htdocs/ecm/index.php b/htdocs/ecm/index.php
index 528b0c57643..fd9169448ee 100644
--- a/htdocs/ecm/index.php
+++ b/htdocs/ecm/index.php
@@ -411,7 +411,7 @@ if (empty($action) || $action == 'file_manager' || eregi('refresh',$action) || $
// Update expandedsectionarray in session
$expandedsectionarray=array();
- if (isset($_SESSION['expandedsectionarray'])) $expandedsectionarray=split(',',$_SESSION['expandedsectionarray']);
+ if (isset($_SESSION['dol_ecmexpandedsectionarray'])) $expandedsectionarray=split(',',$_SESSION['dol_ecmexpandedsectionarray']);
if ($section && $_GET['sectionexpand'] == 'true')
{
@@ -424,7 +424,7 @@ if (empty($action) || $action == 'file_manager' || eregi('refresh',$action) || $
$expandedsectionarray[]=$idcursor;
}
}
- $_SESSION['expandedsectionarray']=join(',',$expandedsectionarray);
+ $_SESSION['dol_ecmexpandedsectionarray']=join(',',$expandedsectionarray);
}
if ($section && $_GET['sectionexpand'] == 'false')
{
@@ -436,9 +436,9 @@ if (empty($action) || $action == 'file_manager' || eregi('refresh',$action) || $
// is_in_subtree(fulltree,sectionparent,sectionchild)
if ($sectioncursor && ! is_in_subtree($fulltree,$section,$sectioncursor)) $expandedsectionarray[]=$sectioncursor;
}
- $_SESSION['expandedsectionarray']=join(',',$expandedsectionarray);
+ $_SESSION['dol_ecmexpandedsectionarray']=join(',',$expandedsectionarray);
}
- //print $_SESSION['expandedsectionarray'].'
';
+ //print $_SESSION['dol_ecmexpandedsectionarray'].'
';
$nbofentries=0;
$oldvallevel=0;