mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-08 00:54:15 +01:00
unlock tree immediately after fetching the rows
This commit is contained in:
parent
9694a4c9f8
commit
7967387e3a
@ -1576,6 +1576,13 @@ class mail_ui
|
|||||||
$sR=array();
|
$sR=array();
|
||||||
self::callWizard($e->getMessage(), false);
|
self::callWizard($e->getMessage(), false);
|
||||||
}
|
}
|
||||||
|
// unlock immediately after fetching the rows
|
||||||
|
if (stripos($_GET['menuaction'],'ajax_get_rows')!==false)
|
||||||
|
{
|
||||||
|
//error_log(__METHOD__.__LINE__.' unlock tree ->'.$_GET['menuaction']);
|
||||||
|
$response = egw_json_response::get();
|
||||||
|
$response->call('app.mail.unlock_tree');
|
||||||
|
}
|
||||||
if (is_array($sR) && count($sR)>0)
|
if (is_array($sR) && count($sR)>0)
|
||||||
{
|
{
|
||||||
foreach ((array)$sR as $key => $v)
|
foreach ((array)$sR as $key => $v)
|
||||||
@ -1604,11 +1611,6 @@ class mail_ui
|
|||||||
//error_log(__METHOD__.__LINE__.array2string($rows));
|
//error_log(__METHOD__.__LINE__.array2string($rows));
|
||||||
|
|
||||||
if (mail_bo::$debugTimes) mail_bo::logRunTimes($starttime,null,'Folder:'.$_folderName.' Start:'.$query['start'].' NumRows:'.$query['num_rows'],__METHOD__.__LINE__);
|
if (mail_bo::$debugTimes) mail_bo::logRunTimes($starttime,null,'Folder:'.$_folderName.' Start:'.$query['start'].' NumRows:'.$query['num_rows'],__METHOD__.__LINE__);
|
||||||
if (stripos($_GET['menuaction'],'ajax_get_rows')!==false)
|
|
||||||
{
|
|
||||||
$response = egw_json_response::get();
|
|
||||||
$response->call('app.mail.unlock_tree');
|
|
||||||
}
|
|
||||||
return $rowsFetched['messages'];
|
return $rowsFetched['messages'];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user