diff --git a/AssemblyInfo.cs b/AssemblyInfo.cs index 0bd6e1b..0874774 100644 --- a/AssemblyInfo.cs +++ b/AssemblyInfo.cs @@ -8,6 +8,6 @@ // //------------------------------------------------------------------------------ -[assembly: System.Reflection.AssemblyVersion("04.01.00.00")] +[assembly: System.Reflection.AssemblyVersion("04.01.01.00")] diff --git a/DotNetNuke_DotNetNuke.Repository.dnn b/DotNetNuke_DotNetNuke.Repository.dnn index 7075126..c97b1d8 100644 --- a/DotNetNuke_DotNetNuke.Repository.dnn +++ b/DotNetNuke_DotNetNuke.Repository.dnn @@ -1,6 +1,6 @@  - + Repository A file/object repository module that includes skinning and community features like comments and user ratings. icon_repository_32px.gif @@ -321,7 +321,7 @@ - + Repository Dashboard diff --git a/ReleaseNotes.html b/ReleaseNotes.html index 42dc4e2..16661fa 100644 --- a/ReleaseNotes.html +++ b/ReleaseNotes.html @@ -1,4 +1,7 @@ -

Repository 4.0.0

+

Repository 4.1.1

+

Fix for issue ¤47

+
+

Repository 4.0.0

This is a total rewrite in c# and brings the module Dnn 9.2 compatible. This is a pre-release version and should not be used in a production environment.


Repository 3.5.6

diff --git a/Repository.ascx.cs b/Repository.ascx.cs index 246131b..30a4fd1 100644 --- a/Repository.ascx.cs +++ b/Repository.ascx.cs @@ -231,9 +231,9 @@ private void Page_Load(System.Object sender, System.EventArgs e) oRepositoryBusinessController.LocalResourceFile = m_LocalResourceFile; oRepositoryBusinessController.SetRepositoryFolders(ModuleId); - - if (Request.Cookies[string.Format("_DRMCategory{0}", ModuleId)] != null) { - oRepositoryBusinessController.g_CategoryId = int.Parse(Request.Cookies[string.Format("_DRMCategory{0}", ModuleId)].Value); + + if (ViewState[string.Format("_DRMCategory{0}", ModuleId)] != null) { + oRepositoryBusinessController.g_CategoryId = int.Parse(Convert.ToString(ViewState[string.Format("_DRMCategory{0}", ModuleId)])); } else { bool allDefault = false; if (Settings["AllowAllFiles"] != null) { @@ -372,9 +372,9 @@ private void Page_Load(System.Object sender, System.EventArgs e) } - CreateCookie(); + ViewState[string.Format("_DRMCategory{0}", ModuleId)] = oRepositoryBusinessController.g_CategoryId; - CheckItemRoles(); + CheckItemRoles(); LoadRepositoryTemplates(); @@ -1678,8 +1678,8 @@ private void ddlCategories_SelectedIndexChanged(object sender, System.EventArgs lstObjects.CurrentPageIndex = 0; ViewState["mPage"] = Convert.ToString(lstObjects.CurrentPageIndex); ViewState["mAttributes"] = oRepositoryBusinessController.g_Attributes; - CreateCookie(); - BindObjectList(); + ViewState[string.Format("_DRMCategory{0}", ModuleId)] = oRepositoryBusinessController.g_CategoryId; + BindObjectList(); } public void TreeNodeClick(object source, DotNetNuke.UI.WebControls.DNNTreeNodeClickEventArgs e) @@ -1693,8 +1693,8 @@ public void TreeNodeClick(object source, DotNetNuke.UI.WebControls.DNNTreeNodeCl lstObjects.CurrentPageIndex = 0; ViewState["mPage"] = Convert.ToString(lstObjects.CurrentPageIndex); ViewState["mAttributes"] = oRepositoryBusinessController.g_Attributes; - CreateCookie(); - BindObjectList(); + ViewState[string.Format("_DRMCategory{0}", ModuleId)] = oRepositoryBusinessController.g_CategoryId; + BindObjectList(); } private void ddlCategories2_SelectedIndexChanged(object sender, System.EventArgs e) @@ -1740,8 +1740,8 @@ private void ddlAttribute_SelectedIndexChanged(object sender, System.EventArgs e lstObjects.CurrentPageIndex = 0; ViewState["mPage"] = Convert.ToString(lstObjects.CurrentPageIndex); ViewState["mAttributes"] = oRepositoryBusinessController.g_Attributes; - CreateCookie(); - BindObjectList(); + ViewState[string.Format("_DRMCategory{0}", ModuleId)] = oRepositoryBusinessController.g_CategoryId; + BindObjectList(); } #endregion @@ -1939,22 +1939,6 @@ private void CheckItemRoles() } - - private void CreateCookie() - { - HttpCookie objCategory = null; - - if (Request.Cookies["_DRMCategory" + ModuleId] == null) { - objCategory = new HttpCookie("_DRMCategory" + ModuleId); - Response.AppendCookie(objCategory); - } - - objCategory = Request.Cookies["_DRMCategory" + ModuleId]; - objCategory.Value = oRepositoryBusinessController.g_CategoryId.ToString(); - Response.SetCookie(objCategory); - - } - private bool CheckUserRoles(string roles) { if (string.IsNullOrEmpty(roles)) { @@ -2935,9 +2919,8 @@ public void OnModuleCommunication(object s, DotNetNuke.Entities.Modules.Communic mFilter = e.Value.ToString(); break; } - CreateCookie(); - - ViewState["mFilter"] = mFilter; + ViewState[string.Format("_DRMCategory{0}", ModuleId)] = oRepositoryBusinessController.g_CategoryId; + ViewState["mFilter"] = mFilter; ViewState["mSortOrder"] = mSortOrder; ViewState["mPage"] = "0"; ViewState["mItemID"] = mItemID;