Skip to content
This repository was archived by the owner on Dec 11, 2024. It is now read-only.
This repository was archived by the owner on Dec 11, 2024. It is now read-only.

Front / blocs order is not correct #1473

@akossentini

Description

@akossentini

Sorting blocs in Backoffice is based on "orderVlaue" and calculated with
target.orderValue = (target.nextSibling () orderValue + target.previousSibling () orderValue..) / 2;
Somtimes, it gives orderValue with precision like "298.5".

In Frontoffice, API pages (get page from route) create an array with orderValue as indexes. "298.5" is not a valid index so it's placed at the end.
ksort ($ newBlocks);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions