Skip to content

Instantly share code, notes, and snippets.

View jitendrapurohit's full-sized avatar

Jitendra Purohit jitendrapurohit

View GitHub Profile
mysql-client
mysql-server
php5
phpmyadmin
ant
postfix
lynx
libncurses5
libxml2-dev
flex
diff --git a/CRM/Utils/QueryFormatter.php b/CRM/Utils/QueryFormatter.php
index bdbabea..f009371 100644
@@ -211,6 +287,13 @@ class CRM_Utils_QueryFormatter {
*/
protected function _formatFtsBool($text, $mode) {
$result = NULL;
+ // Bounce back if delimiters are searched in Full Text search mode.
+ $delimiters = array('(', ')', '+', '-', '<', '>', '@', '~');
+ if (in_array($text, $delimiters)) {
+ $csid = CRM_Core_DAO::getFieldValue('CRM_Core_DAO_OptionValue', 'CRM_Contact_Form_Search_Custom_FullText', 'value', 'name');
diff --git a/CRM/Contribute/Form/Contribution/Confirm.php b/CRM/Contribute/Form/Contribution/Confirm.php
index 3890084..c032899 100644
--- a/CRM/Contribute/Form/Contribution/Confirm.php
+++ b/CRM/Contribute/Form/Contribution/Confirm.php
@@ -1540,6 +1540,7 @@ class CRM_Contribute_Form_Contribution_Confirm extends CRM_Contribute_Form_Contr
);
$form->set('renewal_mode', $renewalMode);
+ $form->assign('renewal_mode', $renewalMode);
if (!empty($dates)) {
diff --git a/CRM/Price/BAO/PriceField.php b/CRM/Price/BAO/PriceField.php
index f0e76e8..e806a32 100644
--- a/CRM/Price/BAO/PriceField.php
+++ b/CRM/Price/BAO/PriceField.php
@@ -818,10 +818,12 @@ WHERE id IN (" . implode(',', array_keys($priceFields)) . ')';
*/
public static function getTaxLabel($opt, $valueFieldName, $displayOpt, $taxTerm) {
if ($displayOpt == 'Do_not_show') {
- $label = CRM_Utils_Money::format($opt[$valueFieldName] + $opt['tax_amount']);
+ $totalAmount = CRM_Utils_Number::roundClosely($opt[$valueFieldName] + $opt['tax_amount']);
diff --git a/CRM/Pledge/BAO/Pledge.php b/CRM/Pledge/BAO/Pledge.php
index c8594c0..6e5371c 100644
--- a/CRM/Pledge/BAO/Pledge.php
+++ b/CRM/Pledge/BAO/Pledge.php
@@ -154,7 +154,6 @@ class CRM_Pledge_BAO_Pledge extends CRM_Pledge_DAO_Pledge {
$transaction = new CRM_Core_Transaction();
$paymentParams = array();
- $paymentParams['status_id'] = CRM_Utils_Array::value('status_id', $params);
if (!empty($params['installment_amount'])) {
diff --git a/CRM/Core/Payment/OmnipayMultiProcessor.php b/CRM/Core/Payment/OmnipayMultiProcessor.php
index 207f1a8..7f6ccb6 100644
--- a/CRM/Core/Payment/OmnipayMultiProcessor.php
+++ b/CRM/Core/Payment/OmnipayMultiProcessor.php
@@ -164,6 +164,12 @@ class CRM_Core_Payment_OmnipayMultiProcessor extends CRM_Core_Payment_PaymentExt
// Serialization of 'Closure' is not allowed error - issue #17
$this->gateway = NULL;
CRM_Core_Session::storeSessionObjects(FALSE);
+
+ //Commit the session if it is not already done.
diff --git a/ang/crmMailing/BlockResponses.html b/ang/crmMailing/BlockResponses.html
index cf56f00796..06d0ab7a7d 100644
--- a/ang/crmMailing/BlockResponses.html
+++ b/ang/crmMailing/BlockResponses.html
@@ -37,8 +37,7 @@ Required vars: mailing, crmMailingConst
ui-jq="select2"
ui-options="{dropdownAutoWidth : true}"
ng-model="mailing.reply_id"
- ng-options="mc.id as mc.name for mc in crmMailingConst.headerfooterList | filter:{component_type: 'Reply'}"
- required>
diff --git a/CRM/Contact/BAO/SavedSearch.php b/CRM/Contact/BAO/SavedSearch.php
index 04fe04ef7c..2bf4c2e38c 100644
--- a/CRM/Contact/BAO/SavedSearch.php
+++ b/CRM/Contact/BAO/SavedSearch.php
@@ -92,6 +92,17 @@ class CRM_Contact_BAO_SavedSearch extends CRM_Contact_DAO_SavedSearch {
* the values of the posted saved search used as default values in various Search Form
*/
public static function getFormValues($id) {
+ $fields = array(
+ 'event_start_date_low' => 'event_date_low',
[headers:ezcMailPart:private] => ezcMailHeadersHolder Object
(
[lookup:ezcMailHeadersHolder:private] => Array
(
[received] => Received
[authentication-results] => Authentication-Results
[received-spf] => Received-SPF
[dkim-signature] => DKIM-Signature
[x-google-dkim-signature] => X-Google-DKIM-Signature
[x-gm-message-state] => X-Gm-Message-State
[headers:ezcMailPart:private] => ezcMailHeadersHolder Object
(
[lookup:ezcMailHeadersHolder:private] => Array
(
[received] => Received
[from] => From
[to] => To
[subject] => Subject
[thread-topic] => Thread-Topic
[thread-index] => Thread-Index