4.1.1 Change: SUB COLLECTION, hidden in tree #386
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.
Now, nested collections are show in the tree.
With this change you can decide whether to hide them
First I created the System Setting mostra_sub_collections_tree and their lexicon.
If this is false, collection hide in tree.
I only changed some functions in 2 events, only those that, in my opinion, occurred in this setting (show/hide in tree).
The other functions don't intervene, it seems to me
The other processor/event that conteint show_in_tree are
Events\OnBeforeEmptyTrash
Processors\Resource\ChangeChildParent.php
Processors\Resource\ChangeParent.php
They do not affect setting (i think :))