Commit 0a6c5a8e authored by mattwire's avatar mattwire
Browse files

Set civicrm_contribution_recur.processor_id if still using trxn_id

parent 9d7b9991
......@@ -300,7 +300,8 @@ function mjwshared_symfony_preUpdateInsert(\Civi\Core\DAO\Event\PreUpdate $event
}
elseif (!empty($event->object->trxn_id) && empty($event->object->processor_id)) {
// warn old set
CRM_Core_Error::deprecatedFunctionWarning('civicrm_contribution_recur.processor_id', 'civicrm_contribution_recur.trxn_id');
CRM_Core_Error::deprecatedWarning('Payment processor needs updating to use civicrm_contribution_recur.processor_id instead of deprecated civicrm_contribution_recur.trxn_id');
$event->object->processor_id = $event->object->trxn_id;
}
if (!empty($event->object->trxn_id) && !empty($event->object->processor_id) && ($event->object->trxn_id !== $event->object->processor_id)) {
// Warn set to different values
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment