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

Regression: 'Contact Merged' is not a valid option for field activity_type_id

    Details

    • Type: Bug
    • Status: Won't Do
    • Priority: Major
    • Resolution: Won't Do
    • Affects Version/s: 4.7.21
    • Fix Version/s: None
    • Component/s: Dedupe
    • Labels:
      None
    • Versioning Impact:
      Patch (backwards-compatible bug fixes)
    • Documentation Required?:
      None
    • Funding Source:
      Needs Funding
    • Verified?:
      No

      Description

      When trying to merge contacts with activities, CiviCRM fails with 'Contact Merged' is not a valid option for field activity_type_id"

      Running CiviCRM 4.7.21.

       

      Stack trace:

      Aug 04 14:55:35 [info] Running task: Processed 2 pair of duplicates out of 7

      Aug 04 14:55:36 [info] $CRM_Queue_Page_AJAX_runNext_error = CiviCRM_API3_Exception: "'Contact Merged' is not a valid option for field activity_type_id"
      #0 public_html/administrator/components/com_civicrm/civicrm/CRM/Dedupe/Merger.php(1850): civicrm_api3("activity", "create", (Array:5))
      #1 public_html/administrator/components/com_civicrm/civicrm/CRM/Dedupe/Merger.php(1745): CRM_Dedupe_Merger::createMergeActivities("5501", "18866")
      #2 public_html/administrator/components/com_civicrm/civicrm/CRM/Dedupe/Merger.php(2182): CRM_Dedupe_Merger::moveAllBelongings("5501", "18866", (Array:11), TRUE)
      #3 public_html/administrator/components/com_civicrm/civicrm/CRM/Dedupe/Merger.php(792): CRM_Dedupe_Merger::dedupePair((Array:11), (Array:2), (Array:0), "safe", TRUE, "5501", "18866", "merge Individual_1_75_0_18813")
      #4 public_html/administrator/components/com_civicrm/civicrm/CRM/Dedupe/Merger.php(615): CRM_Dedupe_Merger::merge((Array:2), (Array:3), "safe", TRUE, TRUE)
      #5 public_html/administrator/components/com_civicrm/civicrm/CRM/Contact/Page/DedupeMerge.php(135): CRM_Dedupe_Merger::batchMerge("1", "75", "safe", 2, 1)
      #6 [internal function](): CRM_Contact_Page_DedupeMerge::callBatchMerge(Object(CRM_Queue_TaskContext), "1", "75", "safe", 2, 1)
      #7 public_html/administrator/components/com_civicrm/civicrm/CRM/Queue/Task.php(88): call_user_func_array((Array:2), (Array:6))
      #8 public_html/administrator/components/com_civicrm/civicrm/CRM/Queue/Runner.php(214): CRM_Queue_Task->run(Object(CRM_Queue_TaskContext))
      #9 public_html/administrator/components/com_civicrm/civicrm/CRM/Queue/Page/AJAX.php(52): CRM_Queue_Runner->runNext(TRUE)
      #10 public_html/administrator/components/com_civicrm/civicrm/CRM/Queue/ErrorPolicy.php(106): CRM_Queue_Page_AJAX::{closure}()
      #11 public_html/administrator/components/com_civicrm/civicrm/CRM/Queue/Page/AJAX.php(54): CRM_Queue_ErrorPolicy->call(Object(Closure))
      #12 [internal function](): CRM_Queue_Page_AJAX::runNext()
      #13 public_html/administrator/components/com_civicrm/civicrm/CRM/Core/Invoke.php(276): call_user_func((Array:2))
      #14 public_html/administrator/components/com_civicrm/civicrm/CRM/Core/Invoke.php(84): CRM_Core_Invoke::runItem((Array:13))
      #15 public_html/administrator/components/com_civicrm/civicrm/CRM/Core/Invoke.php(52): CRM_Core_Invoke::_invoke((Array:4))
      #16 public_html/administrator/components/com_civicrm/civicrm.php(121): CRM_Core_Invoke::invoke((Array:4))
      #17 public_html/administrator/components/com_civicrm/civicrm.php(40): civicrm_invoke()
      #18 public_html/libraries/cms/component/helper.php(389): require_once("public_html/administrator/components/com_civicrm/civicrm.php")
      #19 public_html/libraries/cms/component/helper.php(364): JComponentHelper::executeComponent("public_html/administrator/components/com_civicrm/civicrm.php")
      #20 public_html/libraries/cms/application/administrator.php(98): JComponentHelper::renderComponent("com_civicrm")
      #21 public_html/libraries/cms/application/administrator.php(156): JApplicationAdministrator->dispatch()
      #22 public_html/libraries/cms/application/cms.php(265): JApplicationAdministrator->doExecute()
      #23 public_html/administrator/index.php(52): JApplicationCms->execute()

       

      Appears to link to CRM-18289 which was apparently fixed.

       

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              devmate Adam Kwiatkowski
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: