-
-
Notifications
You must be signed in to change notification settings - Fork 825
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
Remove "Copy Case custom data" code (circa 2013) #15051
Conversation
(Standard links)
|
Credit to @eileenmcnaughton for finding where to fix this! |
@jusfreeman tested this, works fine. |
|
I'll update this PR to include the unit test from #14213 |
@jusfreeman can you please also target the 5.17 branch rather than master as this is a regression |
Hmm that wouldn't apply cleanly on master - I switched to 5.17 & still [GitScan\Exception\ProcessErrorException] Can you do ```git pull --rebase origin/5.17`` |
2a7b052
to
7506ba0
Compare
@eileenmcnaughton that OK now? |
It's running - assuming it passes we will backport to 5.16 & drop a 5.16 release early next week |
Great, back to my Weetibix then... nom nom nom. 🥄 |
@jusfreeman failure relates :-( |
The problem is the file doesn't actually exist in the filesystem, so when copyGeneric (indirectly) calls CRM_Core_BAO_File::path() it returns nulls. Assuming the test system allows creating files, change the lines where you set fileA and fileB to something like:
Works for me. |
Just realized my C background took over for a second. Of course file_put_contents() would be a php way to create a file instead of system(). |
@jusfreeman are you on this test - will try to get 5.16.x patch release out in next few days if this is merged |
Yes, will update PR to get that pesky unit test passing. |
@jusfreeman there seems to be a test failing. Also, can you squash all your commits? |
Cool I can see from the test log it's passing now. Guess the parent path is what it didn't like and wants it to be in https://test.civicrm.org/job/CiviCRM-Core-PR/28426/consoleText: |
@jusfreeman might be worth squashing the commits now if it has got past the sticking per per above |
erm - no - that didn't do it |
oh - I think you rebased in master commits.... this is against 5.17 |
da7f36c
to
1d27a00
Compare
Remove "Copy Case custom data" code. Fixes https://lab.civicrm.org/dev/core/issues/1183
…ts to new case on reassignment Add unit test from PR civicrm#14213 Migrate custom file attachments to new case on reassignment. civicrm#14213
1d27a00
to
a577477
Compare
@eileenmcnaughton @demeritcowboy @yashodha @seamuslee001 thanks for all your support and encouragement along the way. It's been an interesting journey and I think this is done now. |
May you live in interesting times :-) |
Backport of PR #15051 to 5.16
Overview
Unable to merge Contacts and Cases with Case custom data, raises an error - DB Error: already exists (applies to CiviCRM 5.16.0 - CiviCRM 5.18.alpha1). See https://lab.civicrm.org/dev/core/issues/1183 for more details.
Before
Unable to merge Contacts and Cases with Case custom data, raises an error - DB Error: already exists.
Steps to reproduce:
After
Can merge Contacts and Cases with Case custom data without error.
Technical Details
Removes code introduced with #1204 - CRM-11662 Add missing logic to copy case custom fields in CRM_Case_BAO_C... #1204
Comments
Happy to say goodbye to old code.
Agileware Ref: CIVICRM-1290