Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixes(Site Copy) #29256 : Many-to-One Relationships Not Copied in Cop…
…y Site (#29777) ### Proposed Changes * The issue when copying Many-to-One relationships when copying a Site was not related to the cardinality, but to the parent Contentlet of the relationship living under System Host. * This was causing the internal mechanism we have for retrieving related content to NOT pick it up because such a parent lives under System Host, not the Site that is being copied. * We're now taking such a scenario into consideration, and now the relationship's tree record is added as expected. * Additionally, a configuration property named `COPY_RELATED_CONTENT_IN_SYSTEM_HOST_CONTENTS` has been added in order to fall back to the previous behavior, if required. * Some code refactoring was implemented, specifically related to renaming some variables whose purpose was not easy to understand. * The important changes are the following: * https://github.com/dotCMS/core/pull/29777/files?diff=unified&w=1#diff-1e60bfafa80721637b2ab2d1418bb840c10ddf5defdc3976ae68ab5c30c68259R1146 * https://github.com/dotCMS/core/pull/29777/files?diff=unified&w=1#diff-1e60bfafa80721637b2ab2d1418bb840c10ddf5defdc3976ae68ab5c30c68259R1173 * https://github.com/dotCMS/core/pull/29777/files?diff=unified&w=1#diff-1e60bfafa80721637b2ab2d1418bb840c10ddf5defdc3976ae68ab5c30c68259R1224
- Loading branch information