mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-01 12:23:50 +01:00
* eMail: fix problem for folder preferences did not overrule folders set by getSpecialUseFolders
This commit is contained in:
parent
1c815af123
commit
8ebbaeed82
@ -2737,8 +2737,13 @@
|
|||||||
}
|
}
|
||||||
if (is_null(self::$specialUseFolders) || empty(self::$specialUseFolders)) self::$specialUseFolders = $this->getSpecialUseFolders();
|
if (is_null(self::$specialUseFolders) || empty(self::$specialUseFolders)) self::$specialUseFolders = $this->getSpecialUseFolders();
|
||||||
|
|
||||||
//highest precedence
|
//highest precedence (user defined profiles, or set by specialUseFolder routine)
|
||||||
$_folderName = $this->mailPreferences->ic_server[$this->profileID]->$types[$_type]['profileKey'];
|
$_folderName = $this->mailPreferences->ic_server[$this->profileID]->$types[$_type]['profileKey'];
|
||||||
|
// check if there is a pref, over- writing/ruling the previous (Folder MUST exist)
|
||||||
|
if (!empty($_folderName) && (!empty($this->mailPreferences->preferences[$types[$_type]['prefName']]) &&
|
||||||
|
$this->mailPreferences->preferences[$types[$_type]['prefName']]!='none' &&
|
||||||
|
$_folder != $this->mailPreferences->preferences[$types[$_type]['prefName']] &&
|
||||||
|
self::folderExists($this->mailPreferences->preferences[$types[$_type]['prefName']],true))) $_folderName = false;
|
||||||
//check prefs next
|
//check prefs next
|
||||||
if (empty($_folderName)) $_folderName = $this->mailPreferences->preferences[$types[$_type]['prefName']];
|
if (empty($_folderName)) $_folderName = $this->mailPreferences->preferences[$types[$_type]['prefName']];
|
||||||
// does the folder exist???
|
// does the folder exist???
|
||||||
|
Loading…
Reference in New Issue
Block a user