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

Correctly handle empty values for fields coming from Salesforce. Thanks to everyone who pointed out this issue and eventually discovered the cause: @prowp on GitHub and WordPress users @rickymortimer, @emilyb6116, @zumajoe. #346

Merged
merged 10 commits into from
Mar 20, 2020

Conversation

jonathanstegall
Copy link
Member

What does this PR do?

Fields that came from Salesforce as empty were being ignored. This allows them to be parameters. If they're meta fields, they're ignored on new record creation. If it's an update of an existing record, the meta field is deleted.

How do I test this PR?

  • pass empty values from Salesforce as core fields and as meta fields and they should be properly handled

…delete it instead of modifying it. this should be the thing for #275, I think
@jonathanstegall jonathanstegall added this to the v1.9.0 milestone Mar 19, 2020
@jonathanstegall jonathanstegall added the bug fix Pull request that fixes a bug label Mar 19, 2020
@jonathanstegall jonathanstegall self-assigned this Mar 19, 2020
@jonathanstegall jonathanstegall merged commit 312c849 into master Mar 20, 2020
@jonathanstegall jonathanstegall deleted the 275-delete-empty-meta-fields branch March 20, 2020 23:16
@jonathanstegall jonathanstegall changed the title Correctly handle empty values for fields coming from Salesforce Correctly handle empty values for fields coming from Salesforce. Thanks to everyone who pointed out this issue and eventually discovered the cause: @prowp on GitHub and rickymortimer, emilyb6116, zumajoe on the WordPress support forums Mar 20, 2020
@jonathanstegall jonathanstegall changed the title Correctly handle empty values for fields coming from Salesforce. Thanks to everyone who pointed out this issue and eventually discovered the cause: @prowp on GitHub and rickymortimer, emilyb6116, zumajoe on the WordPress support forums Correctly handle empty values for fields coming from Salesforce. Thanks to everyone who pointed out this issue and eventually discovered the cause: @prowp on GitHub and WordPress users @rickymortimer, @emilyb6116, @zumajoe. Mar 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug fix Pull request that fixes a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant