Author: leithoff
New Revision: 34571
URL: http://www.egroupware.org/viewvc/egroupware?rev=34571&view=rev
Log:
if fetch data is requesting no elements return an empty request object
Modified:
trunk/felamimail/inc/class.uiwidgets.inc.php
Modified: trunk/felamimail/inc/class.uiwidgets.inc.php
URL: http://www.egroupware.org/viewvc/egroupware/trunk/felamimail/inc/class.uiwidgets.inc.php?rev=34571&r1=34570&r2=34571&view=diff
— trunk/felamimail/inc/class.uiwidgets.inc.php (original)
+++ trunk/felamimail/inc/class.uiwidgets.inc.php Fri Apr 8 10:25:21 2011
@@ -621,23 +621,30 @@
public function ajax_fetch_data($elements, $columns)
{
$response = egw_json_response::get();
-
//error_log(__METHOD__.__LINE__.' Uids to fetch:'.array2string($elements).' Columns to fetch:'.array2string($columns)); -
$this->bofelamimail->restoreSessionData(); -
$maxMessages = $GLOBALS['egw_info']["user"]["preferences"]["common"]["maxmatchs"]; -
if (empty($maxMessages)) $maxMessages = 50; -
$_folderName = $this->bofelamimail->sessionData['mailbox']; -
$folderType = $this->bofelamimail->getFolderType($_folderName); -
$sortResult = $this->bofelamimail->getHeaders( -
$_folderName, -
$offset, -
$maxMessages, -
$this->sessionData['sort'], -
$this->sessionData['sortReverse'], -
(array)$this->sessionData['messageFilter'], -
$elements -
); -
//error_log(__METHOD__.__LINE__.' Data:'.array2string($rvs)); -
$response->data($this->header2gridelements($sortResult['header'],$columns,$_folderName, false, $folderType, false));
-
if (count($elements)>0) -
{ -
//error_log(__METHOD__.__LINE__.' Uids to fetch:'.array2string($elements).' Columns to fetch:'.array2string($columns)); -
$this->bofelamimail->restoreSessionData(); -
$maxMessages = $GLOBALS['egw_info']["user"]["preferences"]["common"]["maxmatchs"]; -
if (empty($maxMessages)) $maxMessages = 50; -
$_folderName = $this->bofelamimail->sessionData['mailbox']; -
$folderType = $this->bofelamimail->getFolderType($_folderName); -
$sortResult = $this->bofelamimail->getHeaders( -
$_folderName, -
$offset, -
$maxMessages, -
$this->sessionData['sort'], -
$this->sessionData['sortReverse'], -
(array)$this->sessionData['messageFilter'], -
$elements -
); -
//error_log(__METHOD__.__LINE__.' Data:'.array2string($rvs)); -
$response->data($this->header2gridelements($sortResult['header'],$columns,$_folderName, false, $folderType, false)); -
} -
else -
{ -
$response->data(array()); -
} } public function header2gridelements($_headers, $cols, $_folderName, $uidOnly=false, $_folderType=0, $dataForXMails=false, $previewMessage=0)
Xperia™ PLAY
It’s a major breakthrough. An authentic gaming
smartphone on the nation’s most reliable network.
And it wants your games.
http://p.sf.net/sfu/verizon-sfdev
eGroupWare-cvs mailing list
eGroupWare-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/egroupware-cvs