Page MenuHomePhabricator

missing gift data from contributions after beginning of august
Closed, ResolvedPublic

Description

From Megan Hernandez:

The letter code under Gift Data for our contributions is missing from donations from Paypal. I thought it started with the upgrade but it looks like the letter code is missing from our past records too. Usually donations come in and are automatically marked as General but now they are not showing up at all.

Looks like the donations from August are missing all gift data as well (campaign, fund, appeal, letter code, thank you stage).

Help please. What can I look up to help?

Megan


Version: wmf-deployment
Severity: major

Details

Reference
bz24829

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 10:59 PM
bzimport set Reference to bz24829.

It looks like when we stripped out the custom API code for the upgrade we might have neglected to add some of the custom data handling code back in (code from civicrm_api - see line 65, civicrm_api/civicrm_api.module, rev 49497)

The bug that caused this has been resolved as of r71529.

I also whipped up a script to loop through all contributions since this became a problem that are missing /all/ of the custom data fields associated with contributions (with the exception of donor comments). It sets the default values for the contributions in question.

The script also echoes out the contribution ID as well as a serialized JSON object of the contribution prior to the update in case we need to roll back. Unfortunately, only the first 14 contributions recorded do no have serialized objects representing their original state (I didn't think of adding it in until after running a few tests on the live data). But for the most part, we have backed up data for the updated contributions.

All in all, 576 contribution records were updated.

[Moving from "CiviCRM/General" to "Wikimedia/CiviCRM; see bug 57738]