Merge remote-tracking branch 'upstream/4.4' into 4.4-master-2014-04-30-12-58-23
authorTim Otten <totten@civicrm.org>
Wed, 30 Apr 2014 20:03:48 +0000 (13:03 -0700)
committerTim Otten <totten@civicrm.org>
Wed, 30 Apr 2014 20:03:48 +0000 (13:03 -0700)
Conflicts:
CRM/Admin/Form/RelationshipType.php

1  2 
CRM/Admin/Form/RelationshipType.php
CRM/Contact/BAO/Contact.php
CRM/Core/xml/Menu/Contact.xml
CRM/Event/Cart/Form/Checkout/Payment.php
CRM/Upgrade/Incremental/php/FourFour.php
CRM/Utils/System.php

index 02518986d6cc5ce4b14c22f0a2de7e48092f30df,944eba370a10db709b19b03a4bdf512952fa4174..d40d93fbd76a992e1530a29840c30582811eb0b2
@@@ -74,7 -74,9 +74,7 @@@ class CRM_Admin_Form_RelationshipType e
        CRM_Core_DAO::getAttribute('CRM_Contact_DAO_RelationshipType', 'description')
      );
  
-     $contactTypes = CRM_Contact_BAO_ContactType::getSelectElements();
 -
 -
+     $contactTypes = CRM_Contact_BAO_ContactType::getSelectElements(FALSE, TRUE, '__');
  
      // add select for contact type
      $contactTypeA = &$this->add('select', 'contact_types_a', ts('Contact Type A') . ' ',
        $baoName = $this->_BAOName;
        $baoName::retrieve($params, $defaults);
        $defaults['contact_types_a'] = CRM_Utils_Array::value('contact_type_a', $defaults);
 -      if (CRM_Utils_Array::value('contact_sub_type_a', $defaults)) {
 +      if (!empty($defaults['contact_sub_type_a'])) {
-         $defaults['contact_types_a'] .= CRM_Core_DAO::VALUE_SEPARATOR . $defaults['contact_sub_type_a'];
+         $defaults['contact_types_a'] .= '__' . $defaults['contact_sub_type_a'];
        }
  
        $defaults['contact_types_b'] = $defaults['contact_type_b'];
 -      if (CRM_Utils_Array::value('contact_sub_type_b', $defaults)) {
 +      if (!empty($defaults['contact_sub_type_b'])) {
-         $defaults['contact_types_b'] .= CRM_Core_DAO::VALUE_SEPARATOR . $defaults['contact_sub_type_b'];
+         $defaults['contact_types_b'] .= '__' . $defaults['contact_sub_type_b'];
        }
        return $defaults;
      }
Simple merge
Simple merge
index cff40261a589b4b45f0304ce15448e610a2b23af,58c528faea59fb3f1a2094d59c1d865ab6c5b022..8f601bd1e0d2e4cd58b163e87da0b7d8a5689ad2
@@@ -588,16 -601,11 +588,16 @@@ class CRM_Event_Cart_Form_Checkout_Paym
        'contribution_status_id' => $params['contribution_status_id'],
        'payment_instrument_id' => $params['payment_instrument_id'],
        'check_number' => CRM_Utils_Array::value('check_number', $params),
 +      'skipLineItem' => 1,
      );
  
 -    $contribution = &CRM_Contribute_BAO_Contribution::add($contribParams, $ids);
 +    if (is_array($this->_paymentProcessor)) {
 +      $contribParams['payment_processor'] = $this->_paymentProcessor['id'];
 +    }
 +
 +    $contribution = &CRM_Contribute_BAO_Contribution::add($contribParams);
      if (is_a($contribution, 'CRM_Core_Error')) {
-       CRM_Core_Error::fatal(ts("There was an error creating a contribution record for your event. Please report this error to the webmaster. Details: %1\n", array(1 => $contribution->getMessages($contribution))));
+       CRM_Core_Error::fatal(ts("There was an error creating a contribution record for your event. Please report this error to the webmaster. Details: %1", array(1 => $contribution->getMessages($contribution))));
      }
      $mer_participant->contribution_id = $contribution->id;
      $params['contributionID'] = $contribution->id;
index ec5a76f9dfc99cd5f8db58432efbc2226a31e025,b3d9de67559e5d072fe2e82d97b539ecc7c3fbf1..a8eab723d218c906ae2e198c118fdb5c6549d9c2
@@@ -784,16 -709,10 +784,17 @@@ class CRM_Utils_System 
      return $memory;
    }
  
 +  /**
 +   * @param string $name
 +   * @param string $mimeType
 +   * @param $buffer
 +   * @param string $ext
 +   * @param bool $output
 +   */
    static function download($name, $mimeType, &$buffer,
      $ext = NULL,
-     $output = TRUE
+     $output = TRUE,
+     $disposition = 'attachment'
    ) {
      $now = gmdate('D, d M Y H:i:s') . ' GMT';