Author: ralfbecker
New Revision: 55542
URL: http://svn.stylite.de/viewvc/egroupware?rev=55542&view=rev
Log:
fix warning about contacts::read($contact_id) should be compatible with EGroupware\Api\Contacts::read($contact_id, $ignore_acl = false) by using Api\Contacts direct
Modified:
trunk/mail/inc/class.mail_compose.inc.php
— trunk/mail/inc/class.mail_compose.inc.php (original)
+++ trunk/mail/inc/class.mail_compose.inc.php Tue Mar 29 10:46:09 2016
@@ -813,7 +813,7 @@
if ($_REQUEST[‘preset’][‘mailtocontactbyid’]) {
if ($GLOBALS[‘egw_info’][‘user’][‘apps’][‘addressbook’]) {
$addressbookprefs =& $GLOBALS[‘egw_info’][‘user’][‘preferences’][‘addressbook’];
-
if (method_exists($contacts_obj,'search')) {
$addressArray = explode(',',$_REQUEST['preset']['mailtocontactbyid']);
foreach ((array)$addressArray as $id => $addressID)
@@ -831,13 +831,13 @@
if ($GLOBALS[‘egw_info’][‘user’][‘preferences’][‘addressbook’][‘hide_accounts’]) $showAccounts=false;
$filter = ($showAccounts?array():array(‘account_id’ => null));
$filter[‘cols_to_search’]=array(‘n_fn’,‘email’,‘email_home’);
-
$contacts = $GLOBALS['egw']->contacts->search($_searchCond,array('n_fn','email','email_home'),'n_fn','','%',false,'OR',array(0,100),$filter);
-
$contacts = $contacts_obj->search($_searchCond,array('n_fn','email','email_home'),'n_fn','','%',false,'OR',array(0,100),$filter);
// additionally search the accounts, if the contact storage is not the account storage
if ($showAccounts &&
$GLOBALS['egw_info']['server']['account_repository'] == 'ldap' &&
$GLOBALS['egw_info']['server']['contact_repository'] == 'sql')
{
-
$accounts = $GLOBALS['egw']->contacts->search($_searchCond,array('n_fn','email','email_home'),'n_fn','','%',false,'OR',array(0,100),array('owner' => 0));
-
$accounts = $contacts_obj->search($_searchCond,array('n_fn','email','email_home'),'n_fn','','%',false,'OR',array(0,100),array('owner' => 0));
if ($contacts && $accounts)
{
@@ -2620,7 +2620,7 @@
{
// List was selected, expand to addresses
unset($_emailAddressList[$ak]);
-
$list = $GLOBALS['egw']->contacts->search('',array('n_fn','n_prefix','n_given','n_family','org_name','email','email_home'),'','','',False,'AND',false,array('list' =>(int)$address));
-
$list = $contacts_obj->search('',array('n_fn','n_prefix','n_given','n_family','org_name','email','email_home'),'','','',False,'AND',false,array('list' =>(int)$address));
// Just add email addresses, they'll be checked below
foreach($list as $email)
{
@@ -3322,6 +3322,7 @@
$_searchString = trim($_REQUEST[‘query’]);
$include_lists = (boolean)$_REQUEST[‘include_lists’];
@@ -3336,12 +3337,12 @@
$filter = $showAccounts ? array() : array(‘account_id’ => null);
$filter[‘cols_to_search’] = array(‘n_prefix’,‘n_given’,‘n_family’,‘org_name’,‘email’,‘email_home’);
$cols = array(‘n_fn’,‘n_prefix’,‘n_given’,‘n_family’,‘org_name’,‘email’,‘email_home’);
-
$contacts = $GLOBALS['egw']->contacts->search($search_str, $cols, 'n_fn', '', '%', false, 'OR', array(0,100), $filter);
-
$contacts = $contacts_obj->search($search_str, $cols, 'n_fn', '', '%', false, 'OR', array(0,100), $filter);
// additionally search the accounts, if the contact storage is not the account storage
-
$accounts = $GLOBALS['egw']->contacts->search($search_str, $cols, 'n_fn', '', '%', false,'OR', array(0,100), $filter);
-
$accounts = $contacts_obj->search($search_str, $cols, 'n_fn', '', '%', false,'OR', array(0,100), $filter);
if ($contacts && $accounts)
{
@@ -3372,7 +3373,7 @@
}
$email = $_rfcAddr->mailbox.’@’.$_rfcAddr->host;
@@ -3423,7 +3424,7 @@
if($include_lists)
{
$lists = array_filter(
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785471&iu=/4140
eGroupWare-cvs mailing list
eGroupWare-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/egroupware-cvs