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

Attempting to delete a relationship with a membership type fatals

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Critical
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.4.0
    • Fix Version/s: 4.6.9
    • Component/s: None
    • Labels:
    • Documentation Required?:
      None
    • Funding Source:
      Core Team Funds

      Description

      I hit this in the test suite - it gets upset because it's trying to treat a string field as an integer

      // set all membership_type to null
      $query = "
      UPDATE civicrm_membership_type
      SET relationship_type_id = NULL
      WHERE relationship_type_id = %1
      ";

      $params = array(1 => array($relationshipTypeId, 'Integer');

      NB - the presence of the custom separated string caused a fatal to trigger

        Attachments

          Activity

            People

            • Assignee:
              jitendra.purohit Jitendra Purohit
              Reporter:
              eileen Eileen McNaughton
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: