Bugfix/1154 parent mapping improvements #1240
Merged
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.
Description
Problem 1:
section1
andsection2
,section1
section, I have:section2
section, I have:There was a problem getting the parent element. - Structures.php: 315
error.Fix: This happens because searching for a parent is not limited to the entries section or category group we’re importing to. The fix is to limit searching for an existing parent within the section/group we’re importing to.
Problem 2:
Fix: Fixed by ensuring the
newParentId
has a value of the newly created entry assigned to it.Problem 3:
It was possible to select a default parent for a category import from any group.
Fix: Limit categories showing in the Default value column for Parent to just the group we’re importing to.
Related issues
#1154