Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-17450

Can there really be a reason for this function to exist???!!??

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Trivial
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.7
    • Fix Version/s: 4.7
    • Component/s: None
    • Labels:
    • Documentation Required?:
      None
    • Funding Source:
      Needs Funding

      Description

      On digging into the civicrm_merge code I found there is a merge_hook implemented in the drupal civicrm.module file which really really looks like a bit of sample code. I can't conceive of a way in which it would make sense

      /**
       * Implements hook_civicrm_merge().
       */
      function civicrm_civicrm_merge($type, &$data, $mainId, $otherId, $tables) {
        if ($mainId == 2311 && $otherId == 5686 && $type == 'batch') {
          $conflicts = &$data['fields_in_conflict'];
          $conflicts['move_custom_1'] = 'end_user';
          unset($conflicts['move_custom_8']);
        }
      }
      

      https://github.com/civicrm/civicrm-drupal/blob/7.x-master/civicrm.module#L1104

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              eileen Eileen McNaughton
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: