Thanks to visit codestin.com
Credit goes to github.com

Skip to content

CSV Duplicate column headers change the order of the array. #134

@valbeat

Description

@valbeat

It appears that importing duplicate column headers changes the order of the arrays.
Also, body corresponding to header is incorrect.

Example:

input:

description detail description detail
Description 1 Detail 1 Description 2 Detail 2

output:

[
                'description'  => 'Description 1',
                'description1' => 'Detail 1',
                'details'      => 'Description 2',
                'details1'     => 'Details 2',
],

It should save the order of the headers.
I will create pull request!

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