Little bug fixes in the SharedFiles Module

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
3/21/2008 1:08:16 AM
JMJ
Gravatar
Total Posts 5

Little bug fixes in the SharedFiles Module

In the Shared Files module, when you edit a Folder, if you pick root as a parent, in the DB the parent is set to 0 instead of -1. This make the folder disappear from the list. Here is the fix that I did apply :

In the file "SharedFilesEdit.aspx.cs" method "PopulateFolderControls()", the line :

this.ddFolderList.Items.Insert(0,new ListItem("Root","0"));

Should be replaced with :

this.ddFolderList.Items.Insert(0,new ListItem("Root","-1"));

I also did add the following line to prevent the folder that you are editing from being in the list of possible parent; if you have a folder in the DB with itself as a parent, it vanishes from the list.

this.ddFolderList.Items.Remove(this.ddFolderList.Items.FindByText(folder.FolderName));

Thanks

Jean-Michel

3/21/2008 7:00:03 AM
Gravatar
Total Posts 18439

Re: Little bug fixes in the SharedFiles Module

Hi Jean-Michel,

Thanks! I'll make the same changes here.

Best,

Joe

You must sign in to post in the forums. This thread is closed to new posts.