made changes to text to make context clearer
authoryashodha <yashodha.chaku@webaccess.co.in>
Mon, 7 Oct 2013 21:51:18 +0000 (03:21 +0530)
committeryashodha <yashodha.chaku@webaccess.co.in>
Mon, 7 Oct 2013 21:51:18 +0000 (03:21 +0530)
CRM/Activity/BAO/Query.php
CRM/Activity/Form/Search.php

index 895a73cb6b12845ff3e50322c2cfb056f89ef569..d65ec2cd41f68e2e92f48f01412bd881586325b9 100644 (file)
@@ -444,12 +444,12 @@ class CRM_Activity_BAO_Query {
     CRM_Core_Form_Date::buildDateRange($form, 'activity_date', 1, '_low', '_high', ts('From'), FALSE, FALSE);
 
     $activityRoles = array(
-      1 => ts('Created by'),
+      3 => ts('With'),
       2 => ts('Assigned to'),
-      3 => ts('Targeted to')
+      1 => ts('Added by'),
     );
     $form->addRadio('activity_role', NULL, $activityRoles);
-
+    $form->setDefaults(array('activity_role' => 3));
     $activityStatus = CRM_Core_PseudoConstant::activityStatus();
     foreach ($activityStatus as $activityStatusID => $activityStatusName) {
       $activity_status[] = $form->createElement('checkbox', $activityStatusID, NULL, $activityStatusName);
index 40ba152c6d18536f75dcff7c4d9053dd587efd54..2c3cd9946dd789e1dbeac889816809d48ebb1265 100644 (file)
@@ -232,7 +232,7 @@ class CRM_Activity_Form_Search extends CRM_Core_Form {
    * @return void
    */
   function buildQuickForm() {
-    $this->addElement('text', 'sort_name', ts('With (name or email)'), CRM_Core_DAO::getAttribute('CRM_Contact_DAO_Contact', 'sort_name'));
+    $this->addElement('text', 'sort_name', ts('Name or Email'), CRM_Core_DAO::getAttribute('CRM_Contact_DAO_Contact', 'sort_name'));
 
     CRM_Activity_BAO_Query::buildSearchForm($this);