Skip to content

Large sortable list not saving the correct order when changed #553

@Sitetools

Description

@Sitetools

I have created a sortable list:

    $pb9 = new Fieldmanager_Group( array(
            'name' => 'model_package',
            'limit' => 0,
            'label' => 'Model Package',
            'collapsed' => true,
            'label_macro' => array( 'Package: %s', 'title' ),
            'sortable' => true,
            'add_more_label' => __( 'Add another package', 'title' ),
            'children' => array(
                    'heading' => new Fieldmanager_Checkbox( array('name' => 'heading',
                                                'label' => 'Package heading',
                                            ) ),
                    'title' => new Fieldmanager_Textfield( 'Attribute title' ),
                    'img' => new Fieldmanager_Media( 'Link image if needed' ),
                    'gl' => new Fieldmanager_Textfield( 'GL value' ),
                    'sport' => new Fieldmanager_Textfield( 'Sport value' ),
                    'limited' => new Fieldmanager_Textfield( 'Limited value' )
            ),
    ) );
    $pb9->add_meta_box( 'Model Package', array( 'models' ) );

I have done this many times, but this list is much longer than any other I have done before around 100 list items.
When I move an item to another position and save the post the moved item has saved in a different position, usually 1 below the position it was moved to.
I have removed any characters from the input fields that might be causing issues e.g. &,'() etc.

Can you think of anything I can try to resolve this issue?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions