Merge remote-tracking branch 'upstream/4.6' into 4.6-master-2015-11-16-01-17-32
authorKurund Jalmi <kurund@yahoo.com>
Sun, 15 Nov 2015 19:57:44 +0000 (01:27 +0530)
committerKurund Jalmi <kurund@yahoo.com>
Sun, 15 Nov 2015 19:57:44 +0000 (01:27 +0530)
18 files changed:
1  2 
CRM/Activity/Form/Search.php
CRM/Admin/Page/AJAX.php
CRM/Case/Form/Search.php
CRM/Contact/Form/Search/Basic.php
CRM/Contribute/Form/Search.php
CRM/Core/Form/Search.php
CRM/Event/Form/Search.php
CRM/Grant/Form/Search.php
CRM/Member/Form/Search.php
CRM/Pledge/Form/Search.php
CRM/Profile/Page/MultipleRecordFieldsListing.php
CRM/Report/Form.php
CRM/Report/Form/Case/Summary.php
CRM/Report/Form/Event/ParticipantListing.php
CRM/Utils/Hook.php
ang/crmUi.js
templates/CRM/common/navigation.js.tpl
xml/GenCode.php

Simple merge
Simple merge
Simple merge
index d8d27abf834910766012994a5941fdf0bc1a578d,e6c2bb7f22a5d1d71aa46ec408a352dec68ff5e9..6dfa818867dcacfcf386bdb7f02b045c09484b16
@@@ -45,12 -52,12 +45,9 @@@ class CRM_Contact_Form_Search_Basic ext
  
    /**
     * Build the form object.
 -   *
 -   *
 -   * @return void
     */
    public function buildQuickForm() {
-     // text for sort_name or email criteria
-     $config = CRM_Core_Config::singleton();
-     $label = empty($config->includeEmailInName) ? ts('Name') : ts('Name or Email');
-     $this->add('text', 'sort_name', $label);
+     $this->addSortNameField();
  
      $searchOptions = CRM_Core_BAO_Setting::valueOptions(CRM_Core_BAO_Setting::SYSTEM_PREFERENCES_NAME,
        'advanced_search_options'
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
index 516ef52bbe8ddb25fa2bfa0967f9895eed69f119,4980983f84d874dc04e50ef89abc470751e63f0c..e1532b3037c58303df5f15205c23f6cbbf121515
@@@ -1782,33 -1737,17 +1782,33 @@@ class CRM_Report_Form extends CRM_Core_
          break;
  
        case 'mhas':
 +        // mhas == multiple has
 +        if ($value !== NULL && count($value) > 0) {
 +          $sqlOP = $this->getSQLOperator($op);
 +          foreach ($value as $key => $val) {
 +            $val = str_replace('(', '[[.left-parenthesis.]]', $val);
 +            $val = str_replace(')', '[[.right-parenthesis.]]', $val);
 +            $value[$key] = $val;
 +          }
 +          $sp = CRM_Core_DAO::VALUE_SEPARATOR;
 +          $clause
 +            = "{$field['dbAlias']} REGEXP '$sp" . implode("$sp|$sp", $value) . "$sp'";
 +        }
 +        break;
 +
        case 'mnot':
-         // mnot == multiple is not one of
+         // mhas == multiple has
          if ($value !== NULL && count($value) > 0) {
            $sqlOP = $this->getSQLOperator($op);
 -          $operator = '';
 -          if ($op == 'mnot') {
 -            // mnot == multiple is not one of
 -            $operator = 'NOT';
 +          foreach ($value as $key => $val) {
 +            $val = str_replace('(', '[[.left-parenthesis.]]', $val);
 +            $val = str_replace(')', '[[.right-parenthesis.]]', $val);
 +            $value[$key] = $val;
            }
 -          $regexp = "[[:cntrl:]]*" . implode('[[:>:]]*|[[:<:]]*', (array) $value) . "[[:cntrl:]]*";
 -          $clause = "{$field['dbAlias']} {$operator} REGEXP '{$regexp}'";
 +          $sp = CRM_Core_DAO::VALUE_SEPARATOR;
 +          $clause
 +            = "( {$field['dbAlias']} NOT REGEXP '$sp" . implode("$sp|$sp", $value) .
 +            "$sp' OR {$field['dbAlias']} IS NULL )";
          }
          break;
  
Simple merge
index 15bc0bf93bfebc43c65374e2cb7ec803ddbd14f9,e96d7c473febd63610f72840abe371445da57fd9..78d7a5c874f50b53505422a631b7fbc3974c6fc2
@@@ -1883,9 -1884,9 +1884,9 @@@ abstract class CRM_Utils_Hook 
     */
    public static function caseChange(\Civi\CCase\Analyzer $analyzer) {
      $event = new \Civi\CCase\Event\CaseChangeEvent($analyzer);
 -    \Civi\Core\Container::singleton()->get('dispatcher')->dispatch("hook_civicrm_caseChange", $event);
 +    \Civi::service('dispatcher')->dispatch("hook_civicrm_caseChange", $event);
  
-     return self::singleton()->invoke(1, $angularModules,
+     self::singleton()->invoke(1, $analyzer,
        self::$_nullObject, self::$_nullObject, self::$_nullObject, self::$_nullObject, self::$_nullObject,
        'civicrm_caseChange'
      );
diff --cc ang/crmUi.js
Simple merge
diff --cc xml/GenCode.php
Simple merge