Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fields: field value-function parameters are empty #352

Closed
speckm opened this issue Feb 6, 2019 · 4 comments
Closed

Fields: field value-function parameters are empty #352

speckm opened this issue Feb 6, 2019 · 4 comments

Comments

@speckm
Copy link

speckm commented Feb 6, 2019

json2csv (version 4.3.3)

Expected behaviour:
When using fields parameter and including a value with a callback function the parameter 'label' should receive the label of the field in the row.

Version 4.3.3:
label is undefined

Version 4.2.1 last tested here):
label has fieldname as expected

@juanjoDiaz
Copy link
Collaborator

Could you add a small code snippet to replicate the issue?

@juanjoDiaz
Copy link
Collaborator

I think I've understood. The problem is that the second argument of the callback function, field, should have a property called label that includes the label, right?

@knownasilya
Copy link
Collaborator

Fix released in v4.3.4

@speckm
Copy link
Author

speckm commented Feb 16, 2019

Sorry, was offline for a few days. Thanks, fixed my problem.

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

No branches or pull requests

3 participants