mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-18 12:41:10 +01:00
unlock tree immediately after fetching the rows
This commit is contained in:
parent
9d1727d077
commit
9bba24a40c
@ -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