|
From: <sv...@de...> - 2005-05-26 20:26:41
|
Author: pcamacho
Date: 2005-05-26 16:26:37 -0400 (Thu, 26 May 2005)
New Revision: 1155
Modified:
humano2/trunk/web/portal/site/leftbar.aspx.cs
Log:
FIX: the leftbar was crashing when trying to show folders because sometim=
es the child of a folder was arriving (in=20
the xml generated by leftbar.aspx.cs) before the father, so the javascrip=
t generated by xsl was wrong. The solution=20
was only to sort the folder by they id_entity, as a father is always crea=
ted before a child.
Modified: humano2/trunk/web/portal/site/leftbar.aspx.cs
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- humano2/trunk/web/portal/site/leftbar.aspx.cs 2005-05-26 19:28:12 UTC=
(rev 1154)
+++ humano2/trunk/web/portal/site/leftbar.aspx.cs 2005-05-26 20:26:37 UTC=
(rev 1155)
@@ -104,8 +104,10 @@
{
string Forms=3D"";
string filtro =3D String.Format("34|0|'{0}'|0|0",userCred.DomainIds[=
userCred.CurrentDomainIndex]);
- =09
- DataTable DTFolder =3D dbAdapter.GenerateViewTools(1400,"0,1401,1403=
,1402",filtro,"","","",0);
+ string folderOrder =3D "1401|0"; //We must order the folders because=
parents must appear before children=20
+ // when the webfxjstree i=
s built in the leftbar
+ =20
+ DataTable DTFolder =3D dbAdapter.GenerateViewTools(1400,"0,1401,1403=
,1402",filtro,"","",folderOrder,0);
=20
DataTable DTView =3D dbAdapter.GenerateViewTools(1011,"0,1017,1018",=
filtro,"","","",0);
=20
|