X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FContact%2FBAO%2FGroup.php;h=805588a5325ee2c7bbd3967b7cdba009bb684c5b;hb=5e47e49ed9a21ae3a32eb20447e462889e1e1dec;hp=9f2d05a4a7badff04a226458f80b63612222ca36;hpb=9dc26c0d802b1334431676647ddf88a90856a1f4;p=civicrm-core.git diff --git a/CRM/Contact/BAO/Group.php b/CRM/Contact/BAO/Group.php index 9f2d05a4a7..805588a532 100644 --- a/CRM/Contact/BAO/Group.php +++ b/CRM/Contact/BAO/Group.php @@ -632,7 +632,7 @@ class CRM_Contact_BAO_Group extends CRM_Contact_DAO_Group { /** * This function create the hidden smart group when user perform - * contact seach and want to send mailing to search contacts. + * contact search and want to send mailing to search contacts. * * @param array $params * ( reference ) an assoc array of name/value pairs. @@ -861,6 +861,9 @@ class CRM_Contact_BAO_Group extends CRM_Contact_DAO_Group { 'count' => '0', ); CRM_Core_DAO::storeValues($object, $values[$object->id]); + // Wrap with crm-editable. Not an ideal solution. + $values[$object->id]['title'] = '' . $values[$object->id]['title'] . ''; + if ($object->saved_search_id) { $values[$object->id]['title'] .= ' (' . ts('Smart Group') . ')'; // check if custom search, if so fix view link @@ -1003,10 +1006,10 @@ class CRM_Contact_BAO_Group extends CRM_Contact_DAO_Group { // need to return id, title (w/ spacer), description, visibility // We need to build a list of tags ordered by hierarchy and sorted by - // name. The heirarchy will be communicated by an accumulation of + // name. The hierarchy will be communicated by an accumulation of // separators in front of the name to give it a visual offset. // Instead of recursively making mysql queries, we'll make one big - // query and build the heirarchy with the algorithm below. + // query and build the hierarchy with the algorithm below. $groups = array(); $args = array(1 => array($groupIdString, 'String')); $query = "