Bugfix: Content Form exception when there is manually installed content in a top level directory. #1006
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
When manually installed content has a path of only a top level directory, eg. "H:", then the Content form of the main Menu (Content button) will crash with an exception. The problem is in the code that attempts to find the most used content directory.
The fix is to ignore content that is installed in a directory without a parent directory.
The commit also includes fixing a simple typo in a variable name.
See also:
https://bugs.launchpad.net/or/+bug/2089801
https://www.elvastower.com/forums/index.php?/topic/38414-crash-with-content-manager/page__view__findpost__p__313090