CRM-12357
authoryashodha <yashodha.chaku@webaccess.co.in>
Sun, 21 Apr 2013 19:21:12 +0000 (00:51 +0530)
committeryashodha <yashodha.chaku@webaccess.co.in>
Sun, 21 Apr 2013 22:32:57 +0000 (04:02 +0530)
CRM/Contact/BAO/Contact.php
CRM/Contact/Page/View/Summary.php

index cfd2fb10cace58711a47a5725c3fd3b909560dcc..bf15c462edfb2d4ea3b4b2a079b231147b6883aa 100644 (file)
@@ -2366,6 +2366,10 @@ AND       civicrm_openid.is_primary = 1";
         );
         return CRM_Activity_BAO_Activity::getActivitiesCount($input);
 
+      case 'mailing':
+          //FIX ME: calculate count
+
+        return;  
       default:
         $custom = explode('_', $component);
         if ($custom['0'] = 'custom') {
index 7053d7f35c01f5d2e5482a429b7dde434bd2847b..444813ab5c44711cbd7627a6f18c50c8d2779273 100644 (file)
@@ -334,8 +334,7 @@ class CRM_Contact_Page_View_Summary extends CRM_Contact_Page_View {
         TRUE
       );
       if (!$writeActivity) {
-        $elem = $mailingCom->registerTab();
-
+        $elem = $mailingComp->registerTab();
       }
     }