Skip to content
This repository was archived by the owner on Mar 1, 2023. It is now read-only.
This repository was archived by the owner on Mar 1, 2023. It is now read-only.

Problem with the duplocation configuration array. #5

@DoYouRockBaby

Description

@DoYouRockBaby

Hello !

I just solved a problem that i had with the duplocation configuration array, into the getCleanedDuplicationConfiguration method, there was a problem when you retrieve the duplicationConfiguration with this line :
$duplicationConfiguration = Core::sortArrayByPositionValue(TypoScriptUtility::getExtensionConfigurationFromPath('duplication', $pageUid));

If this array is overided, sometimes the element n°10 can be called after the element n°20 for example.

I solved it by adding this line just after the Core::sortArrayByPositionValue call :
ksort($duplicationConfiguration);
It force the array to be sorted by number order.

Best regards.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions