Skip to content

Commit

Permalink
Merge branch 'hotfix' of github.com:NETivism/netiCRM into hotfix
Browse files Browse the repository at this point in the history
  • Loading branch information
Chang Shu-Huai committed Aug 22, 2024
2 parents b118000 + ea63a74 commit 0be4d3b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
3 changes: 2 additions & 1 deletion CRM/Contact/BAO/Query.php
Original file line number Diff line number Diff line change
Expand Up @@ -549,7 +549,7 @@ function selectClause() {

// if this is a hierarchical name, we ignore it
$names = explode('-', $name);
if (is_array($name) && count($names > 1) && isset($names[1]) && is_numeric($names[1])) {
if (is_array($name) && count($names) > 1 && isset($names[1]) && is_numeric($names[1])) {
continue;
}

Expand Down Expand Up @@ -3854,6 +3854,7 @@ static function &defaultReturnProperties($mode = self::MODE_CONTACTS) {
'legal_name' => 1,
'sic_code' => 1,
'current_employer' => 1,
'current_employer_id' => 1,
// FIXME: should we use defaultHierReturnProperties() for the below?
'do_not_email' => 1,
'do_not_mail' => 1,
Expand Down
2 changes: 1 addition & 1 deletion CRM/SMS/Form/Provider.php
Original file line number Diff line number Diff line change
Expand Up @@ -198,8 +198,8 @@ public function setDefaultValues() {
* Process the form submission.
*/
public function postProcess() {

CRM_Utils_System::flushCache('CRM_SMS_DAO_Provider');
CRM_Core_BAO_Cache::deleteGroup('SMS Provider');

if ($this->_action & CRM_Core_Action::DELETE) {
CRM_SMS_BAO_Provider::del($this->_id);
Expand Down
1 change: 0 additions & 1 deletion CRM/SMS/Page/Provider.php
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,6 @@ public function run() {
* @param array $action
*/
public function browse($action = NULL) {
CRM_Core_BAO_Cache::deleteGroup('SMS Provider');
$providers = CRM_SMS_BAO_Provider::getProviders();
$rows = array();
foreach ($providers as $provider) {
Expand Down

0 comments on commit 0be4d3b

Please sign in to comment.