Posted by mrangryfish on September 22, 2010 at 1:31am
1 follower
| Project: | File Server |
| Version: | 6.x-1.0-alpha3 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Issue Summary
Hi All
I found that renaming, or in windows just right click - new folder (which calls a rename/move) would drop the folder back to the root and actually kill its name too. This is because in fileserver.module -> function fileserver_dav_move the $target_path array was coming in with a final array element of "" for some reason.
If you have this problem, the fix is to add the following at line 385 (or just after "if (user_access('administer taxonomy')) {":
// remove additional empty array bit that should not be on the end of it first
if ($target_path[count($target_path) - 1] == "") {
array_pop($target_path);
}Hope this helps someone else from spending time debugging this problem! By the way, we love this module, thanks for making it!
Cheers,
Christiaan Kortekaas