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

gpep-map-multiple-source-fields-to-target-field.php: Added a snippet to utilize multiple source form fields mapped to a single target form field. #705

Merged

Conversation

saifsultanc
Copy link
Contributor

Context

⛑️ Ticket(s): https://secure.helpscout.net/conversation/2347765517/54177?folderId=3808239

Summary

If multiple Source Form Fields are Mapped to the same Target Form Field, use a previous mapping rule in case the current one does not have any value.

Explanation:
https://www.loom.com/share/d3ae6ba5370a44da9d6c16d36b048c5b

…p`: Added a snippet to utilize multiple source form fields mapped to a single target form field.
@spivurno
Copy link
Contributor

spivurno commented Sep 6, 2023

Good stuff, @saifsultanc!

Didn't review the snippet but just wanted to suggest we shorten the name to gpep-map-multiple-source-fields-to-target-field.php.

Copy link
Contributor

@claygriffiths claygriffiths left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM pending:

  • Fix PHPCS issue
  • Change name per @spivurno's suggestion
  • Implement my quick suggestion as array_push isn't our preferred way to add to arrays

…t to utilize multiple source form fields mapped to a single target form field.
@github-actions
Copy link

github-actions bot commented Sep 7, 2023

Warnings
⚠️ When ready, don't forget to request reviews on this pull request from your fellow wizards.

Generated by 🚫 dangerJS against c7d8a48

@saifsultanc saifsultanc changed the title gpep-multiple-source-form-fields-mapped-to-same-target-form-field.php: Added a snippet to utilize multiple source form fields mapped to a single target form field. gpep-map-multiple-source-fields-to-target-field.php: Added a snippet to utilize multiple source form fields mapped to a single target form field. Sep 7, 2023
@saifsultanc saifsultanc merged commit 2fe14a3 into master Sep 7, 2023
2 of 3 checks passed
@saifsultanc saifsultanc deleted the saif/add/54177-add-multiple-source-form-fields-snippet branch September 7, 2023 01:52
spivurno pushed a commit that referenced this pull request Oct 7, 2023
…t to utilize multiple source form fields mapped to a single target form field. (#705)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants