From: <lkn...@us...> - 2008-02-27 03:59:53
|
Author: lkneschke Date: Wed Feb 27 04:23:42 2008 New Revision: 883 URL: http://www.egroupware.org/viewvc?rev=3D883&root=3Dtine&view=3Drev Log: send notifications to all accounts in the first step Modified: trunk/tine20/Crm/Controller.php Modified: trunk/tine20/Crm/Controller.php URL: http://www.egroupware.org/viewvc/trunk/tine20/Crm/Controller.php?rev= =3D883&root=3Dtine&r1=3D882&r2=3D883&view=3Ddiff =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D --- trunk/tine20/Crm/Controller.php (original) +++ trunk/tine20/Crm/Controller.php Wed Feb 27 04:23:42 2008 @@ -353,8 +353,9 @@ $subject =3D 'Lead added: ' . $_lead->lead_name; } = - $notification =3D Egwbase_Notification_Factory::getBackend(Egwbase= _Notification_Factory::SMTP); - $notification->send(Zend_Registry::get('currentAccount'), $subject= , $plain, $html); + // send notifications to all accounts in the first step + $accounts =3D Egwbase_Account::getInstance()->getFullAccounts(); + Egwbase_Notification::getInstance()->send($accounts, $subject, $pl= ain, $html); } = /** @@ -392,7 +393,7 @@ 'lead_start' =3D> new Zend_Date(), 'lead_probability' =3D> 0 ); - Zend_Registry::get('logger')->debug(__METHOD__ . '::' . __LINE__ .= ' ' . print_r($defaultData, true)); + //Zend_Registry::get('logger')->debug(__METHOD__ . '::' . __LINE__= . ' ' . print_r($defaultData, true)); $emptyLead =3D new Crm_Model_Lead($defaultData, true); = return $emptyLead; |