Skip to content
This repository has been archived by the owner on Apr 5, 2018. It is now read-only.

Duplicate content from table fields #39

Open
awheatley opened this issue Apr 5, 2017 · 1 comment
Open

Duplicate content from table fields #39

awheatley opened this issue Apr 5, 2017 · 1 comment

Comments

@awheatley
Copy link

I'm exporting values for multiple fields, some plain text (which works fine), and some table fields. In the CSV, for any table fields, the values of each row are added to the CSV cell twice.

For example, if I have a table field such as this:

Length Width Height
1 2 3

...it would export to the CSV like this:

1, 2, 3, 1, 2, 3

Am I missing a step, or can you give me any instruction on how to fix this? Thanks!

@joeforshaw
Copy link

joeforshaw commented Oct 19, 2017

I ran into a similar issue. I believe it's because you've likely added custom handles to your table columns.
Under the hood, Craft will still maintain col1, col2, col3, etc handles. When the plugin exports a table, it iterates over each column handle, including the col ones. If you remove your custom column handles from your table field then it should stop the duplication.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants