From: Michael M Slusarz Date: Thu, 20 May 2010 18:33:56 +0000 (-0600) Subject: Bug #9051: In DIMP, set correct sent-mail folder if select_sentmail_folder is false X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=0495acdf89a45197d4de57227b9aa8e29231c6d4;p=horde.git Bug #9051: In DIMP, set correct sent-mail folder if select_sentmail_folder is false --- diff --git a/imp/lib/Ajax/Application.php b/imp/lib/Ajax/Application.php index 6c1e1ee2f..c30d09436 100644 --- a/imp/lib/Ajax/Application.php +++ b/imp/lib/Ajax/Application.php @@ -1429,18 +1429,20 @@ class IMP_Ajax_Application extends Horde_Ajax_Application_Base $imptree = $GLOBALS['injector']->getInstance('IMP_Imap_Tree'); $imptree->eltDiffStart(); + $sm_displayed = !empty($GLOBALS['conf']['user']['select_sentmail_folder']) && !$GLOBALS['prefs']->isLocked('sent_mail_folder'); + $options = array( 'encrypt' => ($GLOBALS['prefs']->isLocked('default_encrypt') ? $prefs->getValue('default_encrypt') : $this->_vars->encrypt), 'identity' => $identity, 'priority' => $this->_vars->priority, 'readreceipt' => $this->_vars->request_read_receipt, 'save_attachments' => $this->_vars->save_attachments_select, - 'save_sent' => (($GLOBALS['prefs']->isLocked('save_sent_mail')) - ? $identity->getValue('save_sent_mail') - : (bool)$this->_vars->save_sent_mail), - 'sent_folder' => (($GLOBALS['prefs']->isLocked('save_sent_mail')) - ? $identity->getValue('sent_mail_folder') - : (isset($this->_vars->save_sent_mail_folder) ? $this->_vars->save_sent_mail_folder : $identity->getValue('sent_mail_folder'))) + 'save_sent' => ($sm_displayed + ? (bool)$this->_vars->save_sent_mail + : $identity->getValue('save_sent_mail')), + 'sent_folder' => ($sm_displayed + ? (isset($this->_vars->save_sent_mail_folder) ? $this->_vars->save_sent_mail_folder : $identity->getValue('sent_mail_folder')) + : $identity->getValue('sent_mail_folder')) ); try {