Per #174, fix a bug preventing a DocumentFolder from being moved from within another folder into the Project root.
notes
This was fixed already for Documents, so I ported over the fix to DocumentFolder. (I also checked to see if it needed to be applied anywhere else, but it doesn't seem to since those are the only two types of items living in a project.)
In this PR
Per #174, fix a bug preventing a DocumentFolder from being moved from within another folder into the Project root.
notes
This was fixed already for Documents, so I ported over the fix to DocumentFolder. (I also checked to see if it needed to be applied anywhere else, but it doesn't seem to since those are the only two types of items living in a project.)
https://github.com/performant-software/dm-2/commit/1e7841a7ceb6324e490c65d6922fe4d2a7101e04 original fix for Documents:
https://github.com/performant-software/dm-2/blob/a1c0d2f58736d76119cb22a9e1e1a639d06849a2/app/controllers/documents_controller.rb#L95-L98