mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-23 16:33:17 +01:00
* eMail: fix bug unable to delete/rename/move selected folder
This commit is contained in:
parent
84dfeff8d4
commit
c24fc93216
@ -465,14 +465,14 @@ class ajaxfelamimail
|
|||||||
if($folderName == 'INBOX' || $folderName == '--topfolder--') {
|
if($folderName == 'INBOX' || $folderName == '--topfolder--') {
|
||||||
return $response->getXML();
|
return $response->getXML();
|
||||||
}
|
}
|
||||||
|
$this->bofelamimail->reopen('INBOX');
|
||||||
if($this->bofelamimail->deleteFolder($folderName)) {
|
if($this->bofelamimail->deleteFolder($folderName)) {
|
||||||
$folderName = $this->_encodeFolderName($folderName);
|
$folderName = $this->_encodeFolderName($folderName);
|
||||||
$response->addScript("tree.deleteItem('$folderName',1);");
|
$response->addScript("tree.deleteItem('$folderName',1);");
|
||||||
}
|
}
|
||||||
//reset folderObject cache, to trigger reload
|
//reset folderObject cache, to trigger reload
|
||||||
felamimail_bo::resetFolderObjectCache($this->imapServerID);
|
felamimail_bo::resetFolderObjectCache($this->imapServerID);
|
||||||
|
$this->bofelamimail->reopen('INBOX');
|
||||||
return $response->getXML();
|
return $response->getXML();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1373,6 +1373,7 @@ class ajaxfelamimail
|
|||||||
if($this->_debug) error_log("ajaxfelamimail::renameFolder work with ($oldFolderName, $parentFolder, $folderName)");
|
if($this->_debug) error_log("ajaxfelamimail::renameFolder work with ($oldFolderName, $parentFolder, $folderName)");
|
||||||
|
|
||||||
$response = new xajaxResponse();
|
$response = new xajaxResponse();
|
||||||
|
$this->bofelamimail->reopen('INBOX');
|
||||||
if(strtoupper($_oldFolderName) != 'INBOX' ) {
|
if(strtoupper($_oldFolderName) != 'INBOX' ) {
|
||||||
if($newFolderName = $this->bofelamimail->renameFolder($oldFolderName, $parentFolder, $folderName)) {
|
if($newFolderName = $this->bofelamimail->renameFolder($oldFolderName, $parentFolder, $folderName)) {
|
||||||
//enforce the subscription to the newly named server, as it seems to fail for names with umlauts
|
//enforce the subscription to the newly named server, as it seems to fail for names with umlauts
|
||||||
@ -1398,6 +1399,7 @@ class ajaxfelamimail
|
|||||||
}
|
}
|
||||||
//reset folderObject cache, to trigger reload
|
//reset folderObject cache, to trigger reload
|
||||||
felamimail_bo::resetFolderObjectCache($this->imapServerID);
|
felamimail_bo::resetFolderObjectCache($this->imapServerID);
|
||||||
|
$this->bofelamimail->reopen($newFolderName);
|
||||||
|
|
||||||
return $response->getXML();
|
return $response->getXML();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user