* eMail: fix missing trashFolder short display name, when refreshing folder on selecting trash folder itself

This commit is contained in:
Klaus Leithoff 2013-03-11 12:17:19 +00:00
parent f16f807c19
commit 4794e4617d

View File

@ -806,7 +806,7 @@ class ajaxfelamimail
$response->addAssign('quotaDisplay', 'innerHTML', $quotaDisplay);
}
}
//error_log(__METHOD__.__LINE__.$_folderName.'->'.array2string($folderStatus));
if($folderStatus['unseen'] > 0) {
$response->addScript("egw_topWindow().tree.setItemText('$_folderName', '<b>". $folderStatus['shortDisplayName'] ." (". $folderStatus['unseen'] .")</b>');");
} else {
@ -818,6 +818,11 @@ class ajaxfelamimail
{
$folderStatusT = $this->bofelamimail->getFolderStatus($trashFolder);
}
else
{
$folderStatusT = $folderStatus;
}
//error_log(__METHOD__.__LINE__.$trashFolder.'->'.array2string($folderStatus).function_backtrace());
if($folderStatusT['unseen'] > 0) {
$response->addScript("egw_topWindow().tree.setItemText('". $trashFolder ."', '<b>". $folderStatusT['shortDisplayName'] ." (". $folderStatusT['unseen'] .")</b>');");
} else {