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 overwrite custom field value with default value during redirection #7595
Fix overwrite custom field value with default value during redirection #7595
Conversation
tested on Mautix box and it works (the value does not reset to default) |
@florentpetitjean Can you retest with last changes? |
Works fine with new patch |
Ooh, nasty bug! Tested this on Mautibox with a PR that was only unit tests, so close as possible to vanilla 2.16 and could reproduce the bug. Tested the PR on Mautibox and the field is not overwritten with the default content. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kuzmany You're a hero! Was actually experiencing this myself on my Mautic instance (some contacts would mysteriously have some custom field values set back to their defaults sometimes), haven't tested it yet but based on the comments above I'm merging this PR 🎉
This pull request has been mentioned on Mautic Community Forums. There might be relevant details there: https://forum.mautic.org/t/announcing-mautic-2-16-1-beta/13438/1 |
Please be sure you are submitting this against the staging branch.
Description:
Noticed issue with contact field default value.
If Mautic create contact and already have contact in url (ct), Mautic create new anonymouse contact first and then merge it with founded contact.
This make mess, because If our founded contact already exist and we modified custom field, then during the merge method, these two contact are merged and value is overwritten to default value.
Steps to reproduce the bug:
Steps to test this PR: