Error while editing Folder

hjhj6810

New Member
YetiShare User
YetiShare Supporter
Dec 10, 2020
16
2
3
Today, when I was trying to edit a folder I found 1 issue that the parent folder shows as "-none-". This also the same while editing files and when creating new folder too. Check the Screenshot below.
InkedScreenshot_785_LI.jpg
 

adam

Administrator
Staff member
Dec 5, 2009
2,043
108
63
Was there anything special about the folder? For example was it owned by the current account? Was it shared?

I'm not seeing the same if I edit any of the folders on our demo site, although these are all owned by the account I'm logged in as.
 

hjhj6810

New Member
YetiShare User
YetiShare Supporter
Dec 10, 2020
16
2
3
I found the issue, It's because I have 500+[Folder+Subfolders] in total. Because of that, it shows this. Now I am Unable to edit any file. If I edit any file then it goes to root folder from current folder.

Please find a solution for this.
 

adam

Administrator
Staff member
Dec 5, 2009
2,043
108
63
Have a look in:

"\app\helpers\FileFolderHelper.class.php"

Find:

self::loadAllActiveByAccount($accountId, 1000);
(try 500 instead of 1000 if you can't find it)

Increase the number like this:

self::loadAllActiveByAccount($accountId, 5000);

The limit is there for performance reasons. You may have issues rendering the select drop-down with very long lists. I'll add something the dev list to review a more scalable way of showing this.