-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Fix custom field duplication when cloning contacts #14780
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 custom field duplication when cloning contacts #14780
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## 5.2 #14780 +/- ##
============================================
+ Coverage 63.70% 63.72% +0.01%
- Complexity 34683 34684 +1
============================================
Files 2274 2274
Lines 103768 103771 +3
============================================
+ Hits 66106 66126 +20
+ Misses 37662 37645 -17
🚀 New features to boost your workflow:
|
Cloning doesn't work as expected. I would expect the custom field to be cloned after clicking the Save button once. I currently need to click the Save button three times before the clone is actually created. Aslo the max character limit field does not inherit the value from the original item - it should be copied automatically during the cloning. An error also appears after the first attempt to save. Screen.Recording.2025-03-21.140108.mp4 |
I actually like how it is done in segments. If you clone a segment with ID 9 then it will go to route |
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.
Cloned custom fields now redirects to /new and clones successfully
https://www.loom.com/share/0a2f1247b5c749c9af226ccc22d21ad2?sid=21d4ce6e-7b0a-4c84-a525-858de322b733
Hey @Hugo-Prossaird, just a heads up, the 5.2.5 release is happening on April 28th. It’d be great if you could resolve those failing tests so we can get it merged in time. |
…o fix/custom-fields-clone-fix
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.
Thanks @Hugo-Prossaird great catch, and good to be aligning the behaviour with the way segment cloning works in the process, too.
@escopecz one last checkout following your review and related changes and then we can merge ! Thanks :) |
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.
The code changes look great. Thanks! 👍
Description
Clone lead fields redirect to Edit view, instead of Clone. This PR updates it to use the same logic as Segment.
📋 Steps to test this PR:
Before: Redirected to /edit route
After: Redirect to /clone