mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-24 23:09:13 +01:00
* eMail: fix missing trashFolder short display name, when refreshing folder on selecting trash folder itself
This commit is contained in:
parent
f16f807c19
commit
4794e4617d
@ -806,7 +806,7 @@ class ajaxfelamimail
|
|||||||
$response->addAssign('quotaDisplay', 'innerHTML', $quotaDisplay);
|
$response->addAssign('quotaDisplay', 'innerHTML', $quotaDisplay);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
//error_log(__METHOD__.__LINE__.$_folderName.'->'.array2string($folderStatus));
|
||||||
if($folderStatus['unseen'] > 0) {
|
if($folderStatus['unseen'] > 0) {
|
||||||
$response->addScript("egw_topWindow().tree.setItemText('$_folderName', '<b>". $folderStatus['shortDisplayName'] ." (". $folderStatus['unseen'] .")</b>');");
|
$response->addScript("egw_topWindow().tree.setItemText('$_folderName', '<b>". $folderStatus['shortDisplayName'] ." (". $folderStatus['unseen'] .")</b>');");
|
||||||
} else {
|
} else {
|
||||||
@ -818,6 +818,11 @@ class ajaxfelamimail
|
|||||||
{
|
{
|
||||||
$folderStatusT = $this->bofelamimail->getFolderStatus($trashFolder);
|
$folderStatusT = $this->bofelamimail->getFolderStatus($trashFolder);
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$folderStatusT = $folderStatus;
|
||||||
|
}
|
||||||
|
//error_log(__METHOD__.__LINE__.$trashFolder.'->'.array2string($folderStatus).function_backtrace());
|
||||||
if($folderStatusT['unseen'] > 0) {
|
if($folderStatusT['unseen'] > 0) {
|
||||||
$response->addScript("egw_topWindow().tree.setItemText('". $trashFolder ."', '<b>". $folderStatusT['shortDisplayName'] ." (". $folderStatusT['unseen'] .")</b>');");
|
$response->addScript("egw_topWindow().tree.setItemText('". $trashFolder ."', '<b>". $folderStatusT['shortDisplayName'] ." (". $folderStatusT['unseen'] .")</b>');");
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user