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

Fix Field Options Caching in getFieldOptionsMeta() #27

Conversation

vinuvarshith
Copy link
Contributor

Overview

In getFieldOptionsMeta() function, the recent update added a simple caching logic so we dont call 'getoptions' repeatedly. But it didnt take into account for the field name when caching and so breaks when using multiple option fields for a given entity. This was somehow missed in the last update.

Before

Using multiple options fields in an import fails.

After

Using multiple options fields in an import works as expected.

@vinuvarshith
Copy link
Contributor Author

This might fix the issue with #23. Sorry about not testing this fully in the last update.
@eileenmcnaughton

@eileenmcnaughton
Copy link
Owner

Thanks @vinuvarshith - I guess without having unit tests this extension is pretty vulnerable :-(

@eileenmcnaughton eileenmcnaughton merged commit b93025a into eileenmcnaughton:master Apr 11, 2019
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

Successfully merging this pull request may close these issues.

2 participants