~eventum-developers/eventum/trunk

« back to all changes in this revision

Viewing changes to htdocs/reports/recent_activity.php

  • Committer: Bryan Alsdorf
  • Date: 2013-08-23 03:50:34 UTC
  • mto: (4033.1.168 eventum-skysql)
  • mto: This revision was merged to the branch mainline in revision 4660.
  • Revision ID: bryan@montyprogram.com-20130823035034-7f5r3pt1xg0xnnhk
Initial commit of CRM migration

Show diffs side-by-side

added added

removed removed

Lines of Context:
287
287
        if (!Issue::canAccess($res[$issue_field], $usr_id)) {
288
288
            continue;
289
289
        }
290
 
        if (Customer::hasCustomerIntegration($prj_id)) {
291
 
            $details = Customer::getDetails($prj_id, Issue::getCustomerID($res[$issue_field]));
292
 
            $res["customer"] = @$details['customer_name'];
 
290
        if (CRM::hasCustomerIntegration($prj_id)) {
 
291
            $crm = CRM::getInstance($prj_id);
 
292
            try {
 
293
                $customer = $crm->getCustomer(Issue::getCustomerID($res[$issue_field]));
 
294
                $res['customer'] = $customer->getName();
 
295
            } catch (CRMException $e) {
 
296
                $res['customer'] = '';
 
297
            }
293
298
        }
294
299
        $res["date"] = Date_Helper::getFormattedDate($res[$date_field], Date_Helper::getPreferredTimezone($usr_id));
295
300
        // need to decode From:, To: mail headers