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

Fix for CRM-25074 in rev25074 breaks api_v2_ContactTest::testUpdateIndividualWithAll

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Major
    • Resolution: Fixed/Completed
    • Affects Version/s: 3.1
    • Fix Version/s: 3.1
    • Component/s: Core CiviCRM
    • Labels:
      None

      Description

      Commenting out these lines in CRM_Contact_BAO_Contact::add fixes the test, so the cause is probably here:

      //fix for validate contact sub type CRM-5143
      $subType = CRM_Utils_Array::value('contact_sub_type', $params );
      if ( $subType && (!CRM_Contact_BAO_ContactType::isExtendsContactType($subType, $params['contact_type'])) )

      { return; }

        Attachments

          Activity

            People

            • Assignee:
              mover Michał Mach
              Reporter:
              mover Michał Mach
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 1 hour
                1h
                Remaining:
                Remaining Estimate - 1 hour
                1h
                Logged:
                Time Spent - Not Specified
                Not Specified